var datagrid; var SBGridProperties = {}; var tempDate = [{},{},{},{},{},{},{},{}]; function createGrid(){ SBGridProperties.parentid = 'SBGridArea'; SBGridProperties.id = 'datagrid'; SBGridProperties.jsonref = 'tempDate'; SBGridProperties.rowheader = ['seq','update']; SBGridProperties.selectmode = 'free'; SBGridProperties.extendlastcol = 'scroll'; SBGridProperties.fixedrowheight = 50; SBGridProperties.columns = [ {caption : ['datepicker\n( "yy-mm-dd" )'], type : 'datepicker', typeinfo : {dateformat :"yy-mm-dd"}, format : {type:'date', rule:'yyyy-mm-dd', origin : 'yyyymmdd' }, ref : 'date1', width : '100px',style : 'text-align:center'}, {caption : ['oneclickedit\n( true )'], type : 'datepicker' , typeinfo : {dateformat :"yy-mm-dd", oneclickedit:true}, ref : 'date2', width : '100px', style : 'text-align:center'}, {caption : ['locale\n( "en" )'], type : 'datepicker' , typeinfo : {dateformat :"dd-mm-yy", locale:"en"}, ref : 'date3', width : '100px', style : 'text-align:center'}, {caption : ['clearbutton\n( true )'], type : 'datepicker' , typeinfo : {dateformat :"yy-mm-dd", clearbutton:true}, ref : 'date4', width : '100px', style : 'text-align:center'}, {caption : ['multiple\n( 2 )'], type : 'datepicker' , typeinfo : {dateformat :"yy-mm-dd", multiple:2}, ref : 'date5', width : '100px', style : 'text-align:center'}, {caption : ['position\n( "left" )'], type : 'datepicker' , typeinfo : {dateformat :"yy-mm-dd", position:"left"}, ref : 'date6', width : '100px', style : 'text-align:center'}, {caption : ['displayui\n( true )'], type : 'datepicker' , typeinfo : {dateformat :"yy-mm-dd", displayui:true}, ref : 'date7', width : '100px', style : 'text-align:center'}, {caption : ['calendartype\n( "yearmonth" )'], type : 'datepicker' , typeinfo : {calendartype:"yearmonth"}, ref : 'date8', width : '100px', style : 'text-align:center'}, {caption : ['yearrange\n( 100 )'], type : 'datepicker' , typeinfo : {dateformat :"yy-mm-dd", yearrange:100}, ref : 'date9', width : '100px', style : 'text-align:center'}, {caption : ['gotoCurrentClick\n( true )'], type : 'datepicker' , typeinfo : {gotoCurrentClick: true, clearbutton: true}, ref : 'date10', width : '100px', style : 'text-align:center'} ]; datagrid = _SBGrid.create(SBGridProperties); };