PureJS flexGrid 데이터 수정 시
페이지 정보
작성자 다빈치뷰 작성일 2024-01-26 17:21 조회 71회 댓글 0건본문
관련링크
// 그리드 초기화
if (GRID2 != null) {
GRID2.dispose();
}
// create some random data
// bind a grid to the raw data
GRID2 = new wijmo.grid.FlexGrid('#grid2', {
allowMerging: 'Cells',
alternatingRowStep: 0,
selectionMode: 'Row',
autoGenerateColumns: false,
//frozenColumns: 3,
columns: opt.bindColumnInfos,
itemsSource: data,
//상위메뉴, 메뉴명은 수정 X
beginningEdit: function (s, e) {
if (e.col == 1 || e.col == 2) {
e.cancel = true;
}
}
});
위와 같은 그리드가 있습니다.
체크박스 체크여부를 해제 후 id가 btn이라는 버튼을 클릭해서 수정된 row와
해당 row의 데이터를 가져오고 싶은데
$('#btn').click(function(){
console.log(GRID2.collectionView);
}
를 하면 itemsEdited에 아무것도 없습니다.
댓글목록
등록된 댓글이 없습니다.