Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jqGrid multiselect "check all" in header: how to hide it?

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.

How to do it?

like image 269
alessiodl Avatar asked Jun 02 '11 09:06

alessiodl


1 Answers

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();
like image 52
Oleg Avatar answered Oct 21 '22 03:10

Oleg