var datagrid; var SBGridProperties = {}; function createGrid(){ SBGridProperties.parentid = 'SBGridArea'; SBGridProperties.id = 'datagrid'; SBGridProperties.jsonref = 'tuitionData'; SBGridProperties.rowheader = ['seq']; SBGridProperties.selectmode = 'free'; SBGridProperties.hideinputbuttontocombo = [{combo: 'pass', inputbuttons: ['pay'], conditionvalues: ['true']}]; SBGridProperties.extendcol = 4; SBGridProperties.columns = [ {caption: '성명', ref: 'name', type: 'output', style: 'text-align:center;', width: '100px'}, {caption: '나이', ref: 'age', type: 'spinner', style: 'text-align:center;', width: '100px'}, {caption: '연락처', ref: 'phone', type: 'input', style: 'text-align:center;', width: '100px'}, {caption: '주소', ref: 'addr', type: 'textarea', style: 'text-align:center;', width: '200px'}, {caption: '수강료', ref: 'pay', type: 'inputbutton', style: 'text-align:center;', width: '100px', format : {type:'number', rule:'#,###원'}}, {caption: '장학대상', ref: 'pass', type: 'combo', style: 'text-align:center;', width: '100px', typeinfo: {ref: 'tuitionComboData', label: 'label', value: 'value', unselect: {label : '-선택안함-', value: 'none'}}}, ]; datagrid = _SBGrid.create(SBGridProperties); };