:: Forum >>

get the values of the last row

how to get the values of the last row?

I need something like this obj.getLastRow().

exists something similar?

Thursday, February 2, 2006
You have to use RowPosition and RowIndices -

var obj = new AW.UI.Grid;
obj.setCellText(function(i, j){return j + "-" + i});

var rowPosition = obj.getRowCount()-1;
var rowIndicesArray = obj.getRowIndices();
var rowIndex = rowIndicesArray ? rowIndicesArray[rowPosition] : rowPosition;

var columnIndex = 0;

alert(obj.getCellText(columnIndex, rowIndex));
Alex (ActiveWidgets)
Thursday, February 2, 2006
NICE, seems Obvious but Its not!!!!

Jim THIS is a KEEPER for your WEB site!!!!
Please add this to your demos...

G Cayman
Thursday, February 2, 2006
G Cayman,

Make a quick demo that is a complete web page showing how to use this feature and I will be happy to post it.
Jim Hunter (www.FriendsOfAW.com)
Friday, February 3, 2006

This topic is archived.

Back to support forum

Forum search