var datagrid;
var SBGridProperties = {};
function createGrid(){
SBGridProperties.parentid = 'SBGridArea';
SBGridProperties.id = 'datagrid';
SBGridProperties.jsonref = 'ct_data.resources';
SBGridProperties.rowheader = ['seq','update'];
SBGridProperties.selectmode = 'free';
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 : 'name', width : '163px', style : 'text-align:left', type : 'output'},
{caption : ['전화번호'], ref : 'phone', width : '120px', style : 'text-align:center', type : 'input'},
{caption : ['학원주소'], ref : 'addr', width : '407px', style : 'text-align:left', type : 'textarea'}
];
datagrid = _SBGrid.create(SBGridProperties);
$('#textValue').text('"addColumn"버튼을 눌러 가로 스크롤 바를 생성한 다음 "isHorizontalScroll" 버튼을 클릭하여 가로 스크롤바 표시 여부를 확인해보세요.');
};
function isHorizontalScroll(){
$('#textValue').text('가로스크롤 : ' + datagrid.isHorizontalScroll());
};
function addColumn(){
datagrid.addColumn({caption:'addColumn', ref:'a'});
}