Home › Forums › Guriddo jqGrid JS › Help › autowidth bug?
Tony,
I have some columns in the column model set initially to hide dynamically with the loadComplete fuction.
loadComplete:function(){
Hello,
This is not a bug, but a way that autowidth works. This option resize the initially grid to the width of the parent element.
In your case you hide some columns after the grid is setted.
Also you can use the following trick
var gw = parseInt($(“#mygrid”).getGridParam(“width”));
// do here hide of columns
// at end
$(“#mygrid”).setGridWidth(gw-0.01,true);
}
Regards
Tony
Your fix:
Use gridComplete and not loadComplete
Ok Tony,
I change the loadcomplete to gridcomplete and the behavoir is still the same.
There was a bug in setGridWidth when a multiple grids are resized. Use the latest build.
Is there another source to download the files.
I got the new build installed and I still have the same problem.
I'm sure that this bug is corrected
http://github.com/tonytomov/jqGrid/commit/87ceefede8dcc4f69ce39766741fe87ea5b76700
Try to clear your cache.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS