onLoadSuccess: function (data) {
if (data.rows.length > 0) {
for (var i = 0; i < data.rows.length; i++) {
if (data.rows[i].handle_status != “2”) {
$(“input[type=‘checkbox’]”)[i + 1].disabled = true;
}
}
}
},
onSelect : function(rowIndex, rowData) {
if (rowData.handle_status != “2”) {
$(’#dg-listview’).datagrid(‘unselectRow’, rowIndex);
}
},
onCheckAll: function(rows) {
$(“input[type=‘checkbox’]”).each(function(index, el) {
if (el.disabled) {
$("#dg-listview").datagrid(‘uncheckRow’, index - 1);
}
})
},
easyui表格datagrid部分disabled
最新推荐文章于 2021-11-01 10:25:16 发布