tonytomov/jqGrid — Issue #259: Size of grid gets smaller when hiding/showing columns
Author: pikachoo5
Created: 2012-02-08 03:27:37+00:00
State: open

Prior to the upgrade the grid was working fine with 4.0.
Currently I have a grid with many columns, but the columns of interest are two columns with times.
By default column time #1 is visible and column time #2 is hidden.
I have a check box that when clicked hide/shows column #1 or column #2.
The issue is that every time I run this code
if (btnRound.is(“:checked”)) {
table.jqGrid(“showCol”, “EstimatedTime”);
table.jqGrid(“hideCol”, “ActualTime”);
} else {
table.jqGrid(“hideCol”, “EstimatedTime”);
table.jqGrid(“showCol”, “ActualTime”);
}
The width of the grid gets smaller. I need the width to stay fixed.

The demo page “New since beta 3.0″ is behaving the same way for “Hide/Show Columns”.
If the user clicks several times the hide and show links, you will notice that the grid is getting smaller.
Thanks any feedback would be appreciated.