var datagrid; var SBGridProperties = {}; function createGrid(){ SBGridProperties.parentid = 'SBGridArea'; SBGridProperties.id = 'datagrid'; SBGridProperties.jsonref = 'ct_data.resources'; SBGridProperties.selectmode = 'free'; SBGridProperties.rowheader = ['seq', 'update']; SBGridProperties.columns = [ {caption : ['학원명'], ref : 'academy', width : '150px', style : 'text-align:center', type : 'output'}, {caption : ['설립자(성명)'], ref : 'name', width : '150px', style : 'text-align:center', type : 'input'}, {caption : ['전화번호'], ref : 'phone', width : '120px', style : 'text-align:center', type : 'input'} ]; datagrid = _SBGrid.create(SBGridProperties); }; function fnSetExtendCol() { var nCol = datagrid.getCol(); datagrid.setExtendCol(nCol); } function fnGetExtendCol() { var extendcol = datagrid.getExtendCol(); alert("너비를 확장한 열의 인덱스 : " + extendcol); }