Get actual sorting column

Get actual sorting column

the3rdbitthe3rdbit Posts: 8Questions: 0Answers: 0
edited May 2011 in General
Hey Folks
How can I get the actual sorting row and direction (asc/desc) from a DataTable?
Thanks!

Replies

  • the3rdbitthe3rdbit Posts: 8Questions: 0Answers: 0
    *push*
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    [code]
    oTable.fnSettings().aaSorting; // where oTable is the table instance
    [/code]
    aaSorting is a 2D array. The inner arrays are using for each column and each of those has three elements. The first is for the column index, the second the sorting direction and the third an internal data store.

    Allan
This discussion has been closed.