Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you remove (or hide) the caption bar in jqgrid?

I see you can add a top caption bar and put a title by using this code:

jQuery('#grid').setCaption("Title");

Is there anyway, if I have already set a title, to remove the caption bar?

I tried this but it just removes the text (doesn't remove the whole caption bar).

jQuery('#grid').setCaption("");
like image 594
leora Avatar asked Mar 12 '11 17:03

leora


1 Answers

if you want hurry, test

$(".ui-jqgrid-titlebar").hide();

or if you have multiple grids, then only hide titlebar of $("#grid"), then do

$("#gview_grid > .ui-jqgrid-titlebar").hide()
like image 197
Mujah Maskey Avatar answered Sep 28 '22 08:09

Mujah Maskey