how to keep current page after sorting

how to keep current page after sorting

GeaGea Posts: 33Questions: 13Answers: 1

Hi hello, if i am in the page 2 and i sort, the page will set to page 1... how can i do to don't change my page and keep the actual page when i sort?
I was looking in the documentation, and i saw the "full-reset" parameter in draw() method, and i think that if i put that parameter in "false", it would be done, but i don't know how to do that.
Anyone know something?
Thanks for your time!
Gea.

Answers

  • Tom (DataTables)Tom (DataTables) Posts: 139Questions: 0Answers: 26

    Hi

    You can use page() in order to set the current page

    Thanks

    Tom

  • GeaGea Posts: 33Questions: 13Answers: 1

    Oh thanks, so i have to use:

     table.page().draw( 'page' );
    

    that will set the current page right?

This discussion has been closed.