:: Forum >>

# Getting Sorted Grid Data In Current Sort Order

Suppose my grid contains:

Alice

Bob

Carl

I go ~ for i = row0 to row2 getcelltext and I get:

Alice

Bob

Carl

I click on the header twice and sort in reverse now I have:

Carl

Bob

Alice

I go ~ for row0 to row2 getcelltext and I still get:

Alice

Bob

Carl

How can I get the data out in the current sorted order?

- ej

ericj

Wednesday, November 1, 2006

The current row display order is stored in row indices array -

/aw.ui.grid/row-indices.html
if the row indices array is 'undefined' - the row index is the same as row position (un-sorted) otherwise

var rowIndex = rowIndicesArray[rowPosition];

Alex (ActiveWidgets)

Thursday, November 2, 2006

This topic is archived.

Back to support forum

## Forum search