• Resolved pawellabaj

    (@pawellabaj)


    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 that start is being saved and read from local storage. Unfortunatelly it is reset in other place.

    How to reproduce problem:

    1. Choose next page of table
    2. Click some image from second column
    3. Hit browser’s “Back” button
    4. JS alert with “Saved filter was: 10” message is dipslayed
    5. 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]

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, I can’t really help with this, as this seems to be a question that’s specific to the DataTables JS library. Unfortunately, I don’t know the internals of the state saving well enough. Therefore, I can only recommend to ask about this in the DataTables forums.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘pagination from saved state is reset to 0’ is closed to new replies.