remember previous settings with page loads
remember previous settings with page loads
jackalbright
Posts: 14Questions: 4Answers: 0
I would like datatables to go to the state it was in the last time I had the page open. The parameters I'm interested in are Page, Sort Column, Sort Direction, and Previous Search Criteria.
I see that I can use fnPageChange() to go to the page. The others I have not figured out yet.
Also, I see that there is a function called fnSettings(), Is this the function I need to call to get the Sort, Search, and Page info that I need? I looked at the output of fnSettings() and I'm not real sure which values I should grab.
Thanks,
Jack
I see that I can use fnPageChange() to go to the page. The others I have not figured out yet.
Also, I see that there is a function called fnSettings(), Is this the function I need to call to get the Sort, Search, and Page info that I need? I looked at the output of fnSettings() and I'm not real sure which values I should grab.
Thanks,
Jack
This discussion has been closed.
Replies
Allan
The error I get is:
TypeError: j is undefined (in datatables.min.js)
Here's how I enable bStateSave:
oTable = jQuery('#subscriptionTable_dataTable').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bStateSave": true,
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"oTableTools": {
"aButtons": [
"print"
]
}
});
Allan
Allan