3.2.0

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
September 19,
Which AW version are you using? This code seems to be for version 1.0.x
Alex (ActiveWidgets)
September 19,
I am using Version 2.0
September 20,
Then you should use grid.getColumnCount(), grid.getColumnWidth(i)
Alex (ActiveWidgets)
September 23,
Ya thank alex it's working
sabi
September 26,

This topic is archived.

See also:


Back to support forum