jqGrid 多选“全选"在标题中:如何隐藏它? [英] jqGrid multiselect "check all" in header: how to hide it?
本文介绍了jqGrid 多选“全选"在标题中:如何隐藏它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 jqGrid 并将多选选项设置为 true.
I use jqGrid with the multiselect option set to true.
我正在寻找一种方法来隐藏或禁用第一个复选框(列名称行中的复选框),以便用户无法使用全选/取消全选"功能.
I'm looking for a way to hide or disable the first checkbox (the one in the row of the column names) so that users can't use the "check all/uncheck all" feature.
怎么做?
推荐答案
标题中的复选框具有由cb_"前缀和网格 id 组合而成的 id.所以你可以用
The checkbox in the header has the id which is combined from the "cb_" prefix and the grid id. So you can hide the element with
var myGrid = $("#list");
$("#cb_"+myGrid[0].id).hide();
这篇关于jqGrid 多选“全选"在标题中:如何隐藏它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文