Bug : invalid argument (IE8) if no width

Hi,

If some columns have no width specified (like hidden columns) in the xml header configuration we are getting a JS error on IE : invalid argument.

In the function chngCellWidth, cell width is setted with : this.cellWidthPX[i]+“px”. If there is no width, it gives width=“px” wich is not liked by IE.

So I suggest to add this line :

this.cellWidthPX[i] = (this.cellWidthPX[i]?this.cellWidthPX[i]:0);
	this.chngCellWidth=function(){
		if ((_isOpera)&&(this.ftr))
			this.ftr.width=this.objBox.scrollWidth+"px";
		var l = this._cCount;
		for (var i = 0; i < l; i++){
			this.cellWidthPX[i] = (this.cellWidthPX[i]?this.cellWidthPX[i]:0);
			this.hdr.rows[0].cells[i].style.width=this.cellWidthPX[i]+"px";
			this.obj.rows[0].childNodes[i].style.width=this.cellWidthPX[i]+"px";
			
			if (this.ftr)
				this.ftr.rows[0].cells[i].style.width=this.cellWidthPX[i]+"px";
		}
	}

This is known IE issue. You have always specify columns widths.

Why don’t you manage it in your code and add a control as I suggested ?
I think it’s not very smart to add a width to a hidden column …