【发布时间】:2019-08-24 21:57:49
【问题描述】:
我使用 jqgrid 作为具有 multiselect:true 属性的网格。我想根据某些行值删除某些行的复选框(禁用/不允许检查)。我想在复选框模型上添加格式化程序以删除该列上的复选框
我尝试在 beforeProcessing 中访问 colModel,但我还没有看到 jqgrid 自动添加的列名“cb”。因此我不能在 colmodel 中为 'cb' 注入格式化程序。
jqGrid({
multiselect: true,
beforeSelectRow: function() {
//called when tried to select one row.
//its not called when selectAll is called.
},
onSelectAll: function(rowids, status) {
//gets selected row ids when status is true
}
})
1) 我想根据行值来操作复选框的选择。
2) 如果行的列 isApplicable=false,则复选框不应(可见/可选择)
jgrid 版本:5.3.0
【问题讨论】:
标签: javascript jquery jqgrid