:: Forum >>

How to find column width

Hi All,i want to find the each and every column width of the grid. i have been using the below coading. Unluckily it's not supported in my page. Please any one help me to recover this problem.

var i;
var widths = [];
var count = obj.getColumnProperty("count");
for (i = 0; i < count; ++i)
{
widths[i] = obj.getTemplate("top/item", i).element().offsetWidth;
}
alert(widths);

Sabi
Friday, September 19, 2008
Which AW version are you using? This code seems to be for version 1.0.x
Alex (ActiveWidgets)
Friday, September 19, 2008
I am using Version 2.0
Saturday, September 20, 2008
Then you should use grid.getColumnCount(), grid.getColumnWidth(i)
Alex (ActiveWidgets)
Tuesday, September 23, 2008
Ya thank alex it's working
sabi
Friday, September 26, 2008

This topic is archived.


Back to support forum

Forum search