Make jqGrid fill its container

Horacio picture Horacio · May 27, 2010 · Viewed 15.9k times · Source

I am using the jQuery layout plugin and the jqGrid plugin in one of my projects and they work great except for a little problem...

I want the jqGrid to fill up completely the pane (jQuery layout pane) that contains it. Resizing the pane should resize the jqGrid, closing the pane should hide the jqGrid, etc, etc.

Both jqGrid and jQuery Layout provide callbacks but when I use them the page layout breaks horribly.

Has anyone any experience mixing jqGrid with jQuery Layout?

  1. http://www.secondpersonplural.ca/jqgriddocs/index.htm
  2. http://layout.jquery-dev.net/

Answer

Justin Ethier picture Justin Ethier · May 27, 2010

I recommend you read through resize-jqgrid-when-browser-is-resized, which discusses several techniques for resizing your grid.