Forum
09:44
28/11/2013
Hi,
In my project I encounter a strange behaviour (bug ?) when mixing resizement of a fixed (fixed:true in colModel) column and show hide column feature.
Here is the case. I have a jqgrid that takes 100% of its container. My grid contains several columns and one of them is fixed but can be resizable. The grid has also shrinkToFit paramter to true.
If I resize this fixed column and then try to hide/show other colums, the size of the grid is expanded and overlap its container. An horizontal scrollBar appears on the grid.
I had a look in jqgrid code and there might be an error in "setGridWidth" (line 3435 to 3443) method when it calculates the width of fixed columns visible in the table. For now it always takes the original width (widthOrg) of a column and if this columns is fixed it adds it to the gw. If the fixed column was rezise the widthOrg paramter might not be the good one to use.
For now code is
$.each($t.p.colModel, function() {
if(this.hidden===false){
cw = this.widthOrg;
initwidth += cw+brd;
if(this.fixed) {
gw += cw+brd;
} else {
vc++;
}
}
});
In my opinion it should be
$.each($t.p.colModel, function() {
if(this.hidden===false){
if(this.fixed) {
cw = this.width;
gw += cw+brd;
} else {
cw = this.widthOrg;
vc++;
}
initwidth += cw+brd;
}
});
Maybe I am wrong. Can you confirm it to me ?
thanks
15:08
Moderators
30/10/2007
Hello,
Thanks. Will check this
Regards
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.
12:32
Moderators
30/10/2007
Hello,
Can you please provide a simpletest scenario for this problem?
I'm unable to reproduce this.
Thank you.
Kind Regards
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.
12:40
Moderators
30/10/2007
Hello,
Glad to hear this.
Regards
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.
Most Users Ever Online: 715
Currently Online:
27 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