Manual Trigger State Save

Manual Trigger State Save

FParsonsFParsons Posts: 18Questions: 3Answers: 0
edited May 2011 in General
For saving the state of datatables, I did see that there are several callbacks. However, I'd like to load some datatables via Ajax into a DIV - I have tabs that trigger the ajax load. From what I can tell, the cookie saving seems to be triggered by the usual window events (window.onunload?) - but since the window event's don't occur with an Ajax load (when you move from one tab to another), state saving doesn't occur.

Is there a manual way to trigger the state-saving?

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    You could make a call to fnDraw() which will do a state save. Or there is the internal function _fnSaveState which you can call (thought oApi - e.g. oTable.oApi._fnSaveState() ) which will do the state save.

    Allan
  • FParsonsFParsons Posts: 18Questions: 3Answers: 0
    Thanks! I did find "_fnSaveState" in the code but wasn't sure how to use it.
This discussion has been closed.