Hi,
I've encountered a problem when trying to resize the grid after I have resized a column. This is my usecase:
1. Drag&drop a column separator to resize the column (i.e. oldWidth=50, newWidth=70)
2. resize the grid using
grid.jqGrid("setGridWidth", someWidth, true);
now all columns are larger.
3. just by clicking on the column separator previously used, the column resizes back to the newWidth
in the method dragEnd there is a line
nw = this.headers[idx].newWidth || this.headers[idx].width;
when I d&d a separator, newWidth gets set and this value is never reset during resizing of the grid, so the previous line always takes the newWidth for nw.
This also happens with the newWidth on table object itself.
Should those values be reset on setGridWidth? Is there a way around this without modifying the source code?
Thanks,
Marko
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top