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?
Thanks
zsamer
February 2,
You have to use RowPosition and RowIndices -
var obj = new AW.UI.Grid;
obj.setCellText(function(i, j){return j + "-" + i});
obj.setColumnCount(10);
obj.setRowCount(10);
document.write(obj);
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)
February 2,
NICE, seems Obvious but Its not!!!!
Jim THIS is a KEEPER for your WEB site!!!!
Please add this to your demos...
thanks
-g
G Cayman
February 2,
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)
February 3,