Save only sort state

Save only sort state

heavenlypicturesheavenlypictures Posts: 1Questions: 0Answers: 0
edited January 2012 in General
Hi!
I want to save the state of the data table, but I dont need to save the page and the number of rows. So I want to save only the sort state. Is it possible to not save all states, just what I want?
Thank you

Replies

  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    This is readily possible with DataTables 1.9 (it is possible in 1.8, but not so easy). The docs have an example showing how you can remove the filter from the state saving: http://datatables.net/docs/DataTables/1.9.beta.3/DataTable.defaults.html#fnStateSaveParams . You use need to do the same for any other parameters that you don't want to save :-)

    Allan
This discussion has been closed.