var datagrid; var SBGridProperties = {}; function createGrid(){ SBGridProperties.parentid = 'SBGridArea'; SBGridProperties.id = 'datagrid'; SBGridProperties.jsonref = 'ct_data.resources'; SBGridProperties.selectmode = 'free'; SBGridProperties.rowheader = ['seq', 'update']; SBGridProperties.allowcopy = true; SBGridProperties.allowpaste = true; SBGridProperties.hiddencopynpaste = true; SBGridProperties.updatepastestatus = true; SBGridProperties.columns = [ {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', hidden : true}, {caption : ['학원주소'], ref : 'addr', width : '407px', style : 'text-align:left', type : 'textarea'}, ]; datagrid = _SBGrid.create(SBGridProperties); $('#textValue').text('select(true/false) 선택 후 \'setHiddenCopyNPaste\' 버튼을 클릭하여 행 선택 후 복사/붙여넣기시 값을 확인해보세요.'); }; function fn_setHiddenCopyNPaste(){ var iParam = false; var selVal = $('#tValue').val(); if(selVal == "T") { iParam = true; } else { iParam = false; } datagrid.setHiddenCopyNPaste(iParam); }