var datagrid; var SBGridProperties = {}; function createGrid(){ SBGridProperties.parentid = 'SBGridArea'; SBGridProperties.id = 'datagrid'; SBGridProperties.jsonref = 'ct_data.resources'; SBGridProperties.rowheader = ['seq','update']; SBGridProperties.selectmode = 'free'; SBGridProperties.showselectedcellsinfo = ["count","sum","avg"]; SBGridProperties.extendlastcol="scroll"; SBGridProperties.columns = [ {caption : [''], ref : 'check', width : '30px', style : 'text-align:center', type : 'checkbox'}, {caption : ['학원명'], ref : 'academy', width : '300px', style : 'text-align:left', type : 'input'}, {caption : ['설립자(성명)'], ref : 'name', width : '250px', style : 'text-align:left', type : 'output'}, {caption : ['강사수'], ref : 'teacher', width : '100px', style : 'text-align:center', type : 'output', format : {type:'string', rule:'@"명"'}}, {caption : ['교습비'], ref : 'pay', width : '200px', style : 'text-align:right', type : 'output', format:"#,###"} ]; datagrid = _SBGrid.create(SBGridProperties); };