var datagrid;
var SBGridProperties = {};
function createGrid() {
SBGridProperties.parentid = 'SBGridArea';
SBGridProperties.id = 'datagrid';
SBGridProperties.jsonref = 'groupData';
SBGridProperties.selectmode = 'free';
SBGridProperties.extendlastcol = 'scroll';
SBGridProperties.columns = [
{caption : ['수입/지출'], ref : 'impExpSeNm', width : 120, type : 'output', style : 'text-align:center'},
{caption : ['관/항/목/세목'], ref : 'lowcdnm', width : 150, type : 'output', style : 'text-align:center'},
{caption : ['표준/연구회'], ref : 'insnSeNm', width : 120, type : 'output', style : 'text-align:center'},
{caption : ['코드명'], ref : 'codeName', width : 500, type : 'output'},
{caption : ['lv'], ref : 'lv', width : 100, type : 'output', hidden : true}
];
datagrid = _SBGrid.create(SBGridProperties);
datagrid.setGroup({
type: "custom",
typeinfo: {
levelcolid: datagrid.getColID(datagrid.getColRef('lv'))
},
columns: [
{
colid: datagrid.getColID(datagrid.getColRef('codeName')),
open: false
}
]
}, true);
};
function fnSetAllGroupNodesOpened() {
var bool = ($("#bool").val() === "true");
datagrid.setAllGroupNodesOpened(bool, false);
}