var datagrid; var SBGridProperties = {}; function createGrid(){ SBGridProperties.parentid = 'SBGridArea'; SBGridProperties.id = 'datagrid'; SBGridProperties.jsonref = 'data'; SBGridProperties.rowheader = ['seq','update']; SBGridProperties.selectmode = 'free'; SBGridProperties.extendlastcol = 'scroll'; SBGridProperties.columns = [ {caption : ['기본정보','이름'], ref : 'name', width : '100px', style : 'text-align:center', type : 'output'}, {caption : ['기본정보','나이'], ref : 'age', width : '50px', style : 'text-align:center', type : 'input' , typeinfo : {maxlength:3 } }, {caption : ['기본정보','입사년차'], ref : 'period', width : '80px', style : 'text-align:center', type : 'chart' , typeinfo : {charttype : 'bar', color : '#e3b781' } }, {caption : ['기본정보','결혼여부'], type : 'multiradio', typeinfo : {radiolabel : ['YES', 'NO'], radiovalue : ['T', 'F']}, ref : 'married', width : '150px', style : 'text-align:center', fixedstyle : 'background-color:yellow' }, {caption : ['기본정보','국적'], ref : 'nation', width : '100px', style : 'text-align:center', type : 'combo' , typeinfo : {ref:'comboData', label:'label', value:'value' , itemcount : 4, 'displayui':true} }, {caption : ['기본정보','도시'], ref : 'nation2', width : '100px', style : 'text-align:center', type : 'inputcombo' , typeinfo : {ref:'combofilteringData', label:'label', value:'value' , itemcount : 4} }, {caption : ['기본정보','생년월일'], ref : 'birth', width : '90px', style : 'text-align:center', type : 'datepicker',typeinfo : {locale : 'en' , dateformat :'yymmdd'}, format : {type:'date', rule:'yyyy-mm-dd', origin : 'yyyymmdd' } }, {caption : ['부수정보','주소'], ref : 'addr', width : '250px', style : 'text-align:center', type : 'textarea' } ]; datagrid = _SBGrid.create(SBGridProperties); };