var datagrid;
var SBGridProperties = {};
function createGrid(){
SBGridProperties.parentid = 'SBGridArea';
SBGridProperties.id = 'datagrid';
SBGridProperties.jsonref = 'ct_data.resources2';
SBGridProperties.rowheader = ['seq','update'];
SBGridProperties.selectmode = 'free';
SBGridProperties.filtering = true;
SBGridProperties.columns = [
{caption : [''], ref : 'check', width : '30px', style : 'text-align:center', type : 'checkbox'},
{caption : ['학원명'], ref : 'academy', width : '168px', style : 'text-align:left', type : 'input'},
{caption : ['원생수'], ref : 'count', width : '80px', style : 'text-align:right;', fixedstyle : 'color:red;', type : 'input', format: {type:'string', rule: '@" 명"'}, datatype : 'number'},
{caption : ['설립자(성명)'], ref : 'name', width : '163px', style : 'text-align:left', fixedstyle : 'color:red;', type : 'output', filtering : {listsearch : true, title : '설립자(성명)'}},
{caption : ['교습과정'], ref : 'curriculum', width : '100px', style : 'text-align:center', type : 'combo', fixedstyle : 'color:red;', typeinfo : {ref : 'newComboData', displayui : true, label : 'label', value : 'value'}, filtering: {uitype: 'checklist^combo', listsearch: true}},
{caption : ['전화번호'], ref : 'phone', width : '120px', style : 'text-align:center', type : 'input'},
{caption : ['학원주소'], ref : 'addr', width : '407px', style : 'text-align:left', type : 'textarea'},
{caption : ['교육시작일'], ref : 'startday', width : '100px', style : 'text-align:center', type : 'datepicker', typeinfo : {locale : 'ko' , dateformat :'yymmdd'}, format : {type:'date', rule:'yyyy-mm-dd', origin : 'yyyymmdd' }},
{caption : ['교육종료일'], ref : 'endday' , width : '100px', style : 'text-align:center', type : 'inputdate', typeinfo : {locale : 'ko' , dateformat :'yymmdd'}, format : {type:'date', rule:'yyyy-mm-dd', origin : 'yyyymmdd' }},
{caption : ['바로가기'], ref : 'link', width : '100px', style : 'text-align:left', type : 'outputbutton'}
];
datagrid = _SBGrid.create(SBGridProperties);
};