Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery JQGrid-基于值禁用复选框_Jquery_Jqgrid - Fatal编程技术网

Jquery JQGrid-基于值禁用复选框

Jquery JQGrid-基于值禁用复选框,jquery,jqgrid,Jquery,Jqgrid,我想禁用JQGrid中设置了multiselect:true的复选框 这里提到: 但是我不知道如何实现这个解决方案,因为我是jqgrid的新手 我希望做一些类似的事情: if (amount > 50) { disable checkbox } 最好的方法是编写自定义格式化程序: 在构建jqgrid时: jQuery("#grid_id").jqGrid({ ... colModel: [ ... {name:'checkbox', index:'ch

我想禁用JQGrid中设置了
multiselect:true
的复选框

这里提到:

但是我不知道如何实现这个解决方案,因为我是jqgrid的新手

我希望做一些类似的事情:

if (amount > 50) {
disable checkbox
}

最好的方法是编写自定义格式化程序:

在构建jqgrid时:

jQuery("#grid_id").jqGrid({
...
   colModel: [ 
      ... 
      {name:'checkbox', index:'checkbox', width:60, align:"center", formatter:checkBoxFormatter},
      ...
   ]
...
})

最好的方法是编写自定义格式化程序:

在构建jqgrid时:

jQuery("#grid_id").jqGrid({
...
   colModel: [ 
      ... 
      {name:'checkbox', index:'checkbox', width:60, align:"center", formatter:checkBoxFormatter},
      ...
   ]
...
})