I believe there is an error in the documentation for the columnChooser function in the sample done function.
// the grid width is probably changed co we can get new width
// and adjust the width of other elements on the page
//var gwdth = this.jqGrid("getGridParam","width");
It suggests that you can get the new width by getGridParam,width but this does not work because it returns the existing width prior to invoking the columns chooser which makes sense since the hide/showCol methods are documented not to change the width.
So what is the best method to calculate the width required to display the grid following hide/show/resize/columnChooser
Do I need to loop through the colModel summing the widths of non hidden columns? Would I need to take column border widths into account?
It would be be nice if there was a method that would return the width necessary to display the entire grid without shrinking or an option of setGridWidth to set the width to the size needed eg setGridWidth(“auto”)