Recover state across postback
Recover state across postback
Hello Allan
I am using an AJAX data source. All works fine.
I go to another page to do some stuff and then come back again.
The term for this might be 'postback' although I am not absolutely sure.
My question is how do I return the grid to same page and sort.
For some reason I did not get a response to my last question.
At a guess, the reason may have been because it was too easy to be bothered with or you felt I should have been able to work it out myself.
If this question falls into the same category, could I please ask you to let me know.
That way I will know not to bother you needlessly.
Many thanks for your time, and for a very useful plugin.
I am using an AJAX data source. All works fine.
I go to another page to do some stuff and then come back again.
The term for this might be 'postback' although I am not absolutely sure.
My question is how do I return the grid to same page and sort.
For some reason I did not get a response to my last question.
At a guess, the reason may have been because it was too easy to be bothered with or you felt I should have been able to work it out myself.
If this question falls into the same category, could I please ask you to let me know.
That way I will know not to bother you needlessly.
Many thanks for your time, and for a very useful plugin.
This discussion has been closed.
Replies
Sorry you didn't get a reply from me before. I'm afraid that it is simply not possible for me to reply to the 30 odd questions I get every day while also trying to continue development of DataTables and have a full time job to pay the bills... I do try to answer as many as I can though!
The answer in this case is that the state saving feature of DataTables will do what you are looking for: http://datatables.net/usage/features#bStateSave
Allan