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.oneclickedit = true; SBGridProperties.oneclickeditcombohide = true; SBGridProperties.columns = [ {caption : ['학원명'], ref : 'academy', width : '168px', style : 'text-align:left', type : 'input', fixedstyle:'background-color:yellow;'}, {caption : ['전화번호'], ref : 'phone', width : '120px', style : 'text-align:center', type : 'input', fixedstyle:'background-color:yellow;'}, {caption : ['학원주소'], ref : 'addr', width : '407px', style : 'text-align:left', type : 'textarea', fixedstyle:'background-color:yellow;'}, {caption : ['교습과정'], ref : 'curriculum', width : '100px', style : 'text-align:center', type : 'combo', typeinfo : {ref : 'newComboData', displayui : true, label : 'label', value : 'value'}}, ]; datagrid = _SBGrid.create(SBGridProperties); };