var datagrid; var SBGridProperties = {}; var data = [{"temp6":"서울특별시\n금천구\n가산동"}, {}, {}, {}, {}]; function createGrid(){ SBGridProperties.parentid = 'SBGridArea'; SBGridProperties.id = 'datagrid'; SBGridProperties.jsonref = 'data'; SBGridProperties.rowheader = ['seq','update']; SBGridProperties.selectmode = 'free'; SBGridProperties.fixedrowheight = 50; SBGridProperties.rowheight = 50; SBGridProperties.tooltip = true; SBGridProperties.extendlastcol = 'scroll'; SBGridProperties.columns = [ {caption : ['textarea\n(기본형)'], ref : 'temp1', width : '150px', style : 'text-align:center', type : 'textarea'}, {caption : ['maxlength\n(5자 제한)'], typeinfo : {maxlength : 5}, ref : 'temp2', width : '150px', style : 'text-align:center', type : 'textarea'}, {caption : ['autonext\n(5자 초과 시 포커스 이동)'], typeinfo : {maxlength : 5, autonext: true}, ref : 'temp3', width : '170px', style : 'text-align:center', type : 'textarea'}, {caption : ['oneclickedit\n(true)'], typeinfo : {oneclickedit : true}, ref : 'temp4', width : '140px', style : 'text-align:center', type : 'textarea'}, {caption : ['textareawidth\n(200)'], typeinfo : {textareawidth : 200}, ref : 'temp5', width : '140px', style : 'text-align:center', type : 'textarea'}, {caption : ['textareascroll\n(true)'], typeinfo : {textareascroll : true}, ref : 'temp6', width : '150px', style : 'text-align:left', type : 'textarea'} ]; datagrid = _SBGrid.create(SBGridProperties); };