jqGrid多选“检查所有”在标题:如何隐藏? [英] jqGrid multiselect "check all" in header: how to hide it?

查看:353
本文介绍了jqGrid多选“检查所有”在标题:如何隐藏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 jqGrid 将multiselect选项设置为true。

I use jqGrid with the multiselect option set to true.

我正在寻找一种方法来隐藏或禁用第一个复选框(列名称行中的那个),以便用户不能使用check所有/取消选中所有功能。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆