var datagrid;
var SBGridProperties = {};
function createGrid() {
SBGridProperties.parentid = 'SBGridArea';
SBGridProperties.id = 'datagrid';
SBGridProperties.jsonref = 'treeData';
SBGridProperties.selectmode = 'byrow';
SBGridProperties.extendlastcol = 'scroll';
SBGridProperties.tree = {
col: 0,
levelref: 'level',
open: true,
lock: true,
checkboxexceptionlevel : [0,1],
checkboxexceptionlevel : [0,1],
iconclickeventignore : true
},
SBGridProperties.columns = [
{caption:['부/청'], ref:'org0', width:'250px', style:'text-align:left', type:'output'},
{caption:['웹사이트'], ref:'org1', width:'200px', style:'text-align:left', type:'input'},
{caption:['주소'], ref:'org2', width:'450px', style:'text-align:left', type:'textarea'}
];
datagrid = _SBGrid.create(SBGridProperties);
datagrid.bind('treeselect', 'gridTreeSelect');
};
function gridTreeSelect(){
alert(datagrid.getRow() + "번째 트리를 선택했습니다.");
}