Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jqGrid without header

Tags:

jqgrid

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?

like image 935
Tore Avatar asked Mar 23 '10 14:03

Tore


3 Answers

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();
like image 50
tvanfosson Avatar answered Nov 20 '22 08:11

tvanfosson


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.

like image 30
Pieter Avatar answered Nov 20 '22 08:11

Pieter


This works:

var grid = $("#GRID_NAME");
var gview = grid.parents("div.ui-jqgrid-view");
gview.children("div.ui-jqgrid-hdiv").hide();
like image 20
utsavized Avatar answered Nov 20 '22 07:11

utsavized