Forum
07:20
Hi guys.
Has anyone else noticed the following bug?
You activate a (by default hidden) column via the setColumn Dialog, and then you deactivate the very same column again. The first column in the grid is then stretched to a huge witdh and all the other columns are gone.
Would be nice to see a fix for that!
Greetings, Hannes
02:53
Moderators
30/10/2007
Hello,
Could you please post the options in setColumns - i.e ...setColumns( options)?
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
02:39
Moderators
30/10/2007
Hello,
Could not reproduce. Could you please send a link to the problem or the entry grid configuration.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
04:15
05:12
Moderators
30/10/2007
Hello,
Thanks. Will test this.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
02:30
Moderators
30/10/2007
Hello,
Which version of jqGrid is used?
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
07:43
Moderators
30/10/2007
Hello,
Could not reproduce. Could you please provide a link to the problem, or
look at this fix in 3.5 (if this is the problem)
"Fixed bug in setColumns method when we use two or more grids with the same names."
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
07:13
Hi,
after some testing I found and fixed the Bug for me.
In grid.base.js on line 1758:
if(show == “none”) $t.p.tblwidth -= this.width; else $t.p.tblwidth += this.width;
to:
if(show == “none”) $t.p.tblwidth -= parseInt(this.width); else $t.p.tblwidth += parseInt(this.width);
08:25
30/07/2009
Hannes Käufler said:
Post edited 07:19 – 13/10/2009 by Hannes Käufler
It somehow interpreted this.width and $t.p.tblwidth as strings and therefore messed up the grid width.I should add that I updated to jqGrid 3.5.3 (the GitHub version).
But /you/ provided the width's in your colModel!
Easy fix, with no changes to the grid:
width:50, rather than width:'50'
Also probably the better way to fix it, since colModel[i].width is used in a lot of other places without converting it to an int...
Mark
Most Users Ever Online: 715
Currently Online:
65 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66