Hi Tony,
While playing with the showCol and hideCol functions, I stumbled upon a bug which resides both in the 3.5.x and 3.6 beta versions.
The bug:
I have 6 columns from which the first 2 are shown and the last 4 are hidden. I use a slider to dynamically rotate through the hidden and shown columns. When I slide my slider 1 step to the right, column 1 will be hidden and column 3 will be shown. Then when I slide my slider another step to the right, column 2 will be hidden and column 4 will be shown and my grid width will be resized to some really big size all of a suddon.
I've been following this with firebug, and I see the following happen in the ShowHideCol function:
$t.p.tblwidth is currently 500
this.width is currently “16”
$t.p.tblwidth += this.width is called
$t.p.tblwidth is now 50016
My solution:
replace the code in ShowHideCol : function(colname,show) :
if(show == "none") $t.p.tblwidth -= this.width; else $t.p.tblwidth += this.width;
with
if(show == "none") $t.p.tblwidth -= parseInt(this.width); else $t.p.tblwidth += parseInt(this.width);
Kind regards Lotte-Sara Laan
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top