Display without sort?

Display without sort?

cfanscfans Posts: 8Questions: 0Answers: 0
edited November 2010 in General
Is it possible have the sortable columns option on, but have it start out (or ability to change back) with no columns sorted? Really just display the data as it came from the server.. no sorting at all.. but still have sorting capabilities?

Replies

  • cfanscfans Posts: 8Questions: 0Answers: 0
    edited November 2010
    So I found out that in the dataTables block I can use the argument aaSorting and set to an empty array.
    [code]"aaSorting": [ ] [/code]

    And when you want to remove the sorting..
    [code]oTable.fnSort([ ]);[/code]

    But.. is it possible to return to the original way the data was sorted? It seems that when you use the above code to remove the sorting.. it essentially just removes whatever column is highlighted.
This discussion has been closed.