根据 jqx 小部件网格单元格渲染器上的值禁用复选框
这是我的代码:
var cellsrenderer = function (row, columnfield, value, defaulthtml, columnproperties) {
var rowscount = $("#jqxgrid").jqxGrid("getdatainformation").rowscount;
for (j = 0; j < rowscount; j++) {
for (j = 0; j < rowscount; j++) {
var data = $('#jqxgrid').jqxGrid('getrowdata', j);
if (data.flag1 == '2') {
if (columnfield == 'generatepc' && value == true)
//here need to disable the checkbox
}
}
}
}
我无法修复它,你能提供解决方案或想法对我有好处吗