var datagrid;
var SBGridProperties = {};
function createGrid(){
SBGridProperties.parentid = 'SBGridArea';
SBGridProperties.id = 'datagrid';
SBGridProperties.jsonref = 'TempImage';
SBGridProperties.rowheader = ['seq','update'];
SBGridProperties.selectmode = 'free';
SBGridProperties.extendlastcol = 'scroll';
SBGridProperties.fixedrowheight = 50;
SBGridProperties.columns = [
{caption : ['imageuri\n( 기본형 )'], type : 'image' , typeinfo : {}, ref : 'temp1', width : '100px',style : 'text-align:center'},
{caption : ['imagewidth\n( "15" )'], type : 'image' , typeinfo : {imagewidth : "15"}, ref : 'temp2', width : '100px', style : 'text-align:center'},
{caption : ['imageheight\n( "10" )'], type : 'image' , typeinfo : {imageheight :"10"}, ref : 'temp3', width : '100px', style : 'text-align:center'},
{caption : ['imagestyle\n( "margin-left:30px;cursor:pointer" )'], type : 'image' , typeinfo : {imagestyle : 'margin-left:30px;cursor:pointer'}, ref : 'temp4', width : '250px', style : 'text-align:center'},
{caption : ['imagealt\n( "이미지입니다." )'], type : 'image' , typeinfo : { imagealt : '이미지입니다.'}, ref : 'temp5', width : '150px', style : 'text-align:center'},
{caption : ['imageclick\n( "fnImageClick" )'], type : 'image' , typeinfo : { imageclick : 'fnImageClick'},ref : 'temp6', width : '130px', style : 'text-align:center'},
{caption : ['imageerroruri \n( "../url" )'], type : 'image' , typeinfo : {imageerroruri:"/images/common/errorImage.svg"}, ref : 'temp7', width : '100px', style : 'text-align:center'}
];
datagrid = _SBGrid.create(SBGridProperties);
};
function fnImageClick(){
alert('이미지를 클릭하셨습니다.');
}