Possible to make jqGrid stretch to 100%?

Earlz picture Earlz · Jun 16, 2010 · Viewed 70.7k times · Source

Is it possible to make it so that a jqGrid will have a width set to 100%? I understand that column widths must be an absolute pixel size, but I've yet to find anything for setting the width of the actual grid to a relative size. For instance, I want to set the width to 100%. Instead of 100% it seems to use an odd size of 450px. There is more horizontal room on the page, but with the columns width and such, it will make the container(of only the grid) horizontally scroll. Is there some way around this?

Answer

johnjohn picture johnjohn · Jun 4, 2011

autowidth: true from 3.5 onwards