체크박스 33

jqGrid 에서 multiselect 시 한개의 check box 만 선택하게 변경

beforeSelectRow: function (rowid, e) {        var $myGrid = $(this),         i = $.jgrid.getCellIndex($(e.target).closest('td')[0]),         cm = $myGrid.jqGrid('getGridParam', 'colModel');         if(cm[i].name === 'cb'){ //체크박스선택시에 한행만 선택가능함                 $("#tab3-grid").jqGrid('resetSelection'); //멀티셀렉트 그리드에서 체크박스 전체해제                 return true;         } else { //일반로우클릭시에는 한행만 선택가능함     ..

반응형