I have tried to figure out how to disable the header for a jqGrid, so that the row containing the column names does not show. So far, I have come up with no solution. Is there any way to do this?
I don't see that the plugin gives you any options for this, but you could simply find and hide the container for the header.
...set up grid...
$('.ui-jqgrid-hdiv').hide();
Omitting the 'caption' property hides the header.
Very late I know, but for someone still wanting to know. This was found after looking through the source.
This works:
var grid = $("#GRID_NAME");
var gview = grid.parents("div.ui-jqgrid-view");
gview.children("div.ui-jqgrid-hdiv").hide();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With