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.columns = [ {caption : [''], ref : 'check', width : '5%', style : 'text-align:center', type : 'checkbox'}, {caption : ['학원명'], ref : 'academy', width : '15%', style : 'text-align:left', type : 'input'}, {caption : ['설립자(성명)'], ref : 'name', width : '15%', style : 'text-align:left', type : 'output'}, {caption : ['전화번호'], ref : 'phone', width : '15%', style : 'text-align:center', type : 'input'}, {caption : ['학원주소'], ref : 'addr', width : '30%', style : 'text-align:left', type : 'textarea'}, {caption : ['교습과정'], ref : 'curriculum', width : '10%', style : 'text-align:center', type : 'inputcombo', typeinfo : {ref : 'newComboData', displayui : true, label : 'label', value : 'value'}}, {caption : ['바로가기'], ref : 'link', width : '10%', style : 'text-align:left', type : 'outputbutton'} ]; datagrid = _SBGrid.create(SBGridProperties); }; function fnBlock() { $('#SBGridArea').css('display', 'block'); } function fnResize() { datagrid.resize(); }