How to preserve pagination over sorting?

How to preserve pagination over sorting?

lompylompy Posts: 1Questions: 0Answers: 0
edited July 2013 in General
Hello.
By default with pagination feature on sorting one column redraws all the table and puts you to the first page of the table. Is there an easy way to tell datatables that I want to sort and redraw only current pagination? And if there isn't how do I override default sorting feature? I'm usin static data table without any ajax features.
Thanks in advance.

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    In DataTables 1.9- no, there isn't a way of doing that, but in 1.10 you can use `table.order( ... ).draw( false );` to preserve paging. 1.10 pre beta is available in git if you want to give it a bash :-)

    Allan
This discussion has been closed.