saving state for just one element

saving state for just one element

rmm1613rmm1613 Posts: 10Questions: 0Answers: 0
edited June 2011 in General
Hello All,

I was just wondering if anyone knew how to save the state for just the pagination size, and not other elements (sort, searches, etc.)?

I have tried the "bStateSave": true option, but that will save the state for all the elements.

Any help would be much appreciated.

Thanks!

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    There isn't a built in way of saving just that parameter other than modifying the source. However you could use the callback functions fnStateLoadCallback and fnStateSaveCallback to modify the cookie's parameters if you want: http://datatables.net/usage/callbacks

    Allan
  • rmm1613rmm1613 Posts: 10Questions: 0Answers: 0
    I look into it. Thanks Allan!
This discussion has been closed.