3.2.0

Iterate grid (version 1.4)

I have to iterate over a Active grid to test a special condition in one column. But the examples I've found dont'work for me. I tried to use
obj.getCellValue(j, i) and obj.getCellText(i, j), but I get a script error.
I am reading ActiveWidgets version 1.0 documentation and trying to find a useful method to solve my problem, but I still haven't found what I'm looking for. For example, getDataModel() returns empty.
Does anyone have a tip?

Thanks!
J-Chist
September 22,
I am sorry. I made a confusion on the topic above. Actually, I don't need to get the text inside the cell. I just need to iterate over the grid to test the value of a column for each single row. My doubt is: how can I get each single row, to test this column and change row's text color whens this column contains a certain value?

To get the value inside a column, I use:
obj.getDataProperty("text", obj.getSelectionProperty("value", 0), 21)

Is there a similar way to get the whole row?
J-Chist
September 22,
Solved! http://www.activewidgets.com/javascript.forum.25409.1/how-can-i-get-the.html
J-Chist
September 23,

This topic is archived.

See also:


Back to support forum