forEachRow after moveRowUp

I have a grid being loaded from XML. I am then using moveRowUp() to re-order some of the rows. Now I’d like to run forEachRow() on the grid, but I need to increment through as they are currently displayed. The function is incrementing as they were originally pulled from the XML.

Any tips?

Thanks!!!

You may try to use the classic “for” iterator.

<script> for (var i=0; i<grid.getRowsNum(); i++){ // here i - index of the row in the grid do_something_with_row(index); } </script>

Yes! Thats exactly what I’ve been converting to. Was going to post a follow up once done, but you beet me to it.

Thanks!