var datagrid;
var SBGridProperties = {};
function createGrid(){
SBGridProperties.parentid = 'SBGridArea';
SBGridProperties.id = 'datagrid';
SBGridProperties.jsonref = 'compData';
SBGridProperties.gridcreatedcallback = fnCallback;
SBGridProperties.columns = [
{caption : ['Column Type','INPUT'], ref : 'col1', width : '80px', style : 'text-align:center', type : 'input'},
{caption : ['Column Type','OUTPUT'], ref : 'col2', width : '60px', style : 'text-align:center', type : 'output'},
{caption : ['Column Type','COMBO'], ref : 'col3', width : '80px', style : 'text-align:center', type : 'combo' , typeinfo : {ref:'tempCombo1', label:'label', value:'value' , oneclickedit : true ,displayui:true} },
{caption : ['Column Type','INPUTCOMBO'],ref : 'col4', width : '100px',style : 'text-align:center', type : 'inputcombo',typeinfo : {ref:'tempCombo2', label:'label', value:'value' , oneclickedit : true ,displayui:true}},
{caption : ['Column Type','DATEPICKER'],ref : 'col5', width : '100px',style : 'text-align:center', type : 'datepicker',typeinfo : {dateformat:'yymmdd' , oneclickedit : true},format : {type:'date', rule:'yyyy-mm-dd', origin : 'yyyy-mm-dd' }},
{caption : ['Column Type','INPUTDATE'], ref : 'col6', width : '100px',style : 'text-align:center', type : 'inputdate', typeinfo : {dateformat:'yymmdd' , oneclickedit : true},format : {type:'date', rule:'yyyy-mm-dd', origin : 'yyyy-mm-dd' }},
{caption : ['Column Type','SPINNER'], ref : 'col7', width : '80px', style : 'text-align:center', type : 'spinner'},
{caption : ['Column Type','CHECKBOX'], ref : 'col8', width : '80px', style : 'text-align:center', type : 'checkbox'},
{caption : ['Column Type','RADIO'], ref : 'col9', width : '80px', style : 'text-align:center', type : 'radio'},
{caption : ['Column Type','MULTIRADIO'],ref : 'col10', width : '100px',style : 'text-align:center', type : 'multiradio',typeinfo : {radiolabel : ['YES', 'NO'], radiovalue : ['T', 'F']}},
{caption : ['Column Type','BUTTON'], ref : 'col11', width : '80px', style : 'text-align:center', type : 'button', typeinfo : {buttonvalue: 'click', callback: fnCallback}},
{caption : ['Column Type','INPUTBUTTON'],ref : 'col12', width : '100px',style : 'text-align:center', type : 'inputbutton',typeinfo : {callback: fnCallback}},
{caption : ['Column Type','OUTPUTBUTTON'],ref : 'col13',width : '110px',style : 'text-align:center', type : 'outputbutton',typeinfo : {callback: fnCallback}},
{caption : ['Column Type','TEXTAREA'],ref : 'col14', width : '100px',style : 'text-align:center', type : 'textarea'},
];
datagrid = _SBGrid.create(SBGridProperties);
};
function fnCallback(){
alert("callback 함수 동작")
}