pagination from saved state is reset to 0
-
I have added following entries to my table options:
“stateSave”: true,
“stateLoaded”: function (settings, data) {
alert( ‘Saved filter was: ‘+data.start );
}"stateSave": true
makes state of the table being remembered. It works for sorting and partially for paging.With
stateLoaded
callback use I can see thatstart
is being saved and read from local storage. Unfortunatelly it is reset in other place.How to reproduce problem:
- Choose next page of table
- Click some image from second column
- Hit browser’s “Back” button
- JS alert with “Saved filter was: 10” message is dipslayed
- Table displays data from the first row
When I observe state of local storage in Chrome dev tools I see that
data.start
is being saved correctly and being reset after I close the alert.Extensions I use:
- TablePress Extension: DataTables Counter Column
- TablePress Extension: DataTables Sorting plugins
- TablePress Extension: Pagination Length Change “All” entry
The page I need help with: [log in to see the link]
- The topic ‘pagination from saved state is reset to 0’ is closed to new replies.