Page state saving not working with filter
Page state saving not working with filter
myheadisfixed
Posts: 2Questions: 0Answers: 0
Hi.
I have the following code for setting up datatables:
[code]
var dt=$('#customerListTable').dataTable({
"bStateSave": true,
"sPaginationType": "full_numbers",
"aaSorting": [],
"oLanguage": {
"sUrl": "dataTables.german.txt"
},
"iDisplayLength": 25,
"fnInitComplete": function(oSettings, json) {
$("#appWrapper").i18n();
}
}).fnFilter(includeStatusStr,2, true);
[/code]
in includeStatusStr theres the following values for regex filtering: ^3$|^4$|^7$|^8$|^9$|^10$
the states of sorting and display length are saved, but not the page... so when i go to page 3 and reload the page, its always going to page 1. Am i missing something?
Thanks.
I have the following code for setting up datatables:
[code]
var dt=$('#customerListTable').dataTable({
"bStateSave": true,
"sPaginationType": "full_numbers",
"aaSorting": [],
"oLanguage": {
"sUrl": "dataTables.german.txt"
},
"iDisplayLength": 25,
"fnInitComplete": function(oSettings, json) {
$("#appWrapper").i18n();
}
}).fnFilter(includeStatusStr,2, true);
[/code]
in includeStatusStr theres the following values for regex filtering: ^3$|^4$|^7$|^8$|^9$|^10$
the states of sorting and display length are saved, but not the page... so when i go to page 3 and reload the page, its always going to page 1. Am i missing something?
Thanks.
This discussion has been closed.
Replies