主要实现:
用的 easyui 1.3.2
实现多个复选框列,各列互不影响。能够实现全选。主要部门用红色标记了的。
easyui datagrid 初始化:
function initTableGMAL() {
$("#dg_gmal").datagrid({
url: "/Manager/PublishManager/ashx/MALOP.ashx?action=search",
idField: 'MAL_ID', fit: false, fitColumns: true, singleSelect: true,
width: 637, height: 280,
rownumbers: true, nowrap: true, pagination: false,
checkOnSelect: false, selectOnCheck: false,
columns: [[
{ field: 'MAL_ZHName', title: '属性', width: 200, align: 'center' }
,
{ field: 'op1', title: ' 明细中显示:', width: 70, align: 'right' },
{
field: 'op11', title: '', width: 30,
formatter: function (value, rec, rowIndex) {
return "";
}
},
{ field: 'op2', title: '列表中显示:', width: 70, align: 'right' },
{
field: 'op22', title: '', width: 30,
formatter: function (value, rec, rowIndex) {
return "";
}
}
]],
onLoa