I'm having a grid, and I also applied the (autoResizable: true
) on each column. Now I don't want the grid itself to shrink/widen whenever I double click to resize the column. I want the grid itself to stay as is.
I read about setColWidth
new function, but failed to use it.
An example will be great.
Also,
Is there any changes to the setGridWidth
implementation? I have two grids one below the other, and it appears that there is some calculation of the grid width AFTER my call is being made:
For example, each time I execute the following:
$(nameOfGrid).jqGrid('setGridWidth', $('.ui-layout-center').width() - 10, true);
After the above call, both of the grid are effected, but the upper grid is shorter a bit from the lower (or vise versa), so I wonder if there is some calculation INSIDE the setGridWidth
that effect the overall experience.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…