-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.js
44 lines (35 loc) · 1.03 KB
/
common.js
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
$(document).ready(function(){
createGrid();
if(document.URL.match('grouping')!=null){
console.log(123);
defineGroupColumns(datagrid);
$('#showExpanded').on('click', {target : datagrid}, function(event){
var objGrid = event.data.target;
objGrid.setAllGroupNodesOpened(true);
});
$('#showCollapsed').on('click', {target : datagrid}, function(event){
var objGrid = event.data.target;
objGrid.setAllGroupNodesOpened(false);
});
$('#showSum').on('click', {target : datagrid}, function(event){
var objGrid = event.data.target;
//합계표시
if(strCalculateType != 'sum'){
strCalculateType = 'sum';
getCalculateType = function(){return 'sum'};
initGroup(objGrid);
}
objGrid = null;
});
$('#showAvg').on('click', {target : datagrid}, function(event){
var objGrid = event.data.target;
//평균표시
if(strCalculateType != 'average'){
strCalculateType = 'average';
getCalculateType = function(){return 'average'};
initGroup(objGrid);
}
objGrid = null;
});
}
});