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.extendlastcol = 'scroll'; SBGridProperties.fixedrowheight = 30; SBGridProperties.columns = [ {caption : ['OUTPUT','학원명'], ref : 'academy', width : '180px', style : 'text-align:left', type : 'output'}, {caption : ['OUTPUT','설립자'], ref : 'name', width : '150px', style : 'text-align:left', type : 'output'}, {caption : ['OUTPUT','주소'], ref : 'addr', width : '400px', style : 'text-align:left', type : 'output'}, {caption : ['OUTPUT','전화번호'], ref : 'phone', width : '100px', style : 'text-align:center', type : 'output'}, {caption : ['OUTPUT','수강료'], ref : 'pay', width : '200px', style : 'text-align:right', type : 'output', format : {type:'number', rule:'#,###원'}} ]; datagrid = _SBGrid.create(SBGridProperties); };