views:

812

answers:

2

Hi there, I'm using the jQGrid available at http://www.trirand.com/jqgrid/jqgrid.html and I can't find a way to disable its expand/collapse button on the top right of the header. Anyone know if there's an option to do that?

I'd linke to remove the thing circled in red: alt text

+5  A: 

Yes, there is an option for this: hidegrid: false

Justin Ethier
Thanks Justin...must've overlooked it.
btelles
Don't worry about it, it took me awhile to find this one too :)
Justin Ethier
Thanks for the answer, but to be totally accurate, it's not a colmodel option but an option. http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options ;)
bounav
Good point, thanks for the catch! :) I just updated my answer.
Justin Ethier
A: 

Use this code to colllapse all jqgrid on the page elements = $('div.ui-jqgrid-bdiv'); elements.each(function() { $(this).css("display", "none"); }); elements = $('div.ui-jqgrid-hdiv'); elements.each(function() { $(this).css("display", "none"); }); $('#JQGrid_pager').hide(); $('#rs_mJQGrid').hide();

Pankaj Pravin