그리드의 각 영역을 클릭하여 결과를 확인하시기 바랍니다.
checkBar.head 에 “v” 표시 여부를 지정합니다.
CheckBar Header의 전체선택 Checkbox 표시여부에 따라 클릭 시 발생하는 이벤트가 달라집니다.
1
2
3
4
5
6
7
8
9
10
var checked;
if (gridView.getCheckBar().showAll){
checked = false;
}else{
checked = true;
}
gridView.setCheckBar({
showAll: checked
});
현재 데모에 적용된 클릭
, 더블클릭
이벤트들입니다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
//flash 지원
gridView.onColumnHeaderClicked = function (grid, column) {
addLog("onColumnHeaderClicked: " + "(" + column.name + ")");
}
gridView.onColumnHeaderDblClicked = function (grid, column) {
addLog("onColumnHeaderDblClicked: " + "(" + column.name + ")");
};
gridView.onColumnCheckedChanged = function (grid, column, checked) {
addLog("onColumnCheckedChanged: " + "(" + column.name + ", " + checked + ")");
};
//flash 지원
gridView.onDataCellClicked = function (grid, index) {
addLog("onDataCellClicked: " + JSON.stringify(index));
};
//flash 지원
gridView.onDataCellDblClicked = function (grid, index) {
addLog("onDataCellDblClicked: " + JSON.stringify(index));
};
gridView.onFooterCellClicked = function (grid, column) {
addLog("onFooterCellClicked : " + "(" + column.name + ")");
};
gridView.onFooterCellDblClicked = function (grid, column) {
addLog("onFooterCellDblClicked : " + "(" + column.name + ")");
};
//flash 지원
gridView.onItemChecked = function (grid, itemIndex, checked) {
addLog("onItemChecked: " + itemIndex + ", " + checked);
};
//flash 지원
gridView.onItemsChecked = function (grid, items, checked) {
addLog("onItemsChecked: " + items + ", " + checked);
};
//flash 지원
gridView.onItemAllChecked = function (grid, checked) {
addLog("onItemAllChecked: " + checked);
};
gridView.onCheckBarHeadClicked = function (grid) {
addLog("onCheckBarHeadClicked");
};
gridView.onCheckBarFootClicked = function (grid) {
addLog("onCheckBarFootClicked");
};
gridView.onIndicatorCellClicked = function (grid, index) {
addLog("onIndicatorCellClicked : " + "(" + index + ")");
};
gridView.onStateBarCellClicked = function (grid, index) {
addLog("onStateBarCellClicked : " + "(" + index + ")");
};
gridView.onRowGroupHeadClicked = function (grid) {
addLog("onRowGroupHeadClicked");
};
gridView.onRowGroupFootClicked = function (grid) {
addLog("onRowGroupFootClicked");
};
gridView.onRowGroupHeaderFooterClicked = function (grid, index) {
addLog("onRowGroupHeaderFooterClicked : " + "(" + index + ")");
};
gridView.onRowGroupBarClicked = function (grid, index) {
addLog("onRowGroupBarClicked : " + "(" + index + ")");
};
gridView.onCheckBarFootDblClicked = function (grid) {
addLog("onCheckBarFootDblClicked");
};
gridView.onIndicatorCellDblClicked = function (grid, index) {
addLog("onIndicatorCellDblClicked : " + "(" + index + ")");
};
gridView.onStateBarCellDblClicked = function (grid, index) {
addLog("onStateBarCellDblClicked : " + "(" + index + ")");
};
gridView.onRowGroupHeadDblClicked = function (grid) {
addLog("onRowGroupHeadDblClicked");
};
gridView.onRowGroupFootDblClicked = function (grid) {
addLog("onRowGroupFootDblClicked");
};
gridView.onRowGroupHeaderFooterDblClicked = function (grid, index) {
addLog("onRowGroupHeaderFooterDblClicked : " + "(" + index + ")");
};
gridView.onRowGroupBarDblClicked = function (grid, index) {
addLog("onRowGroupBarDblClicked : " + "(" + index + ")");
};
gridView.onPanelClicked = function (grid, index) {
addLog("onPanelClicked : " + "(" + index + ")");
};
gridView.onPanelDblClicked = function (grid, index) {
addLog("onPanelDblClicked : " + "(" + index + ")");
};
gridView.onRowGroupPanelClicked = function (grid, column) {
addLog("onRowGroupPanelClicked : " + "(" + column.name + ")");
};
gridView.onRowGroupPanelDblClicked = function (grid, column) {
addLog("onRowGroupPanelDblClicked : " + "(" + column.name + ")");
};
gridView.onBodyEmptyClicked = function (grid) {
addLog("onBodyEmptyClicked");
};
gridView.onBodyEmptyDblClicked = function (grid) {
addLog("onBodyEmptyDblClicked");
};