:: Forum >>

getRowCount() returns 0 with CSV model

// write grid html to the page
document.write(obj);
var value = obj.getRowIndices();
alert(value); // returns 0

Please advise.
Michael
Wednesday, June 13, 2007
getRowCount() initially returns 0 with CSV model because the data request runs asynchronously by default.

getRowIndices() returns null if the row order did not change, i.e. the row index == row position (0,1,2...).
Alex (ActiveWidgets)
Thursday, June 14, 2007
Hi Alex! Thank you for taking a look. It would be nice to get the RowCount after the data is loaded so I can loop over and do smth.
Is there a way to loop over a collection of rows in the grid?

Many thanks in advance,

--Michael
Thursday, June 14, 2007

This topic is archived.


Back to support forum

Forum search