Any way to run a function after a page change?

Any way to run a function after a page change?

DaveGYNWADaveGYNWA Posts: 10Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
Background on this - I've got a nice script together that memorises opens hidden rows, and on page/datatable refresh it will re-open those open rows for you....so no need for the user to manually re-open those rows.

I've been looking into how it behaves on a paginated table and while it works great on the first page, when clicking to the second page it doesn't have an effect. I'm pretty sure that all will work if there is a way for me to fire the function I am using after a pagination page change occurs. Is this possible? Basically click the next/previous links and when the page has been shown, fire a function.

Replies

  • DaveGYNWADaveGYNWA Posts: 10Questions: 0Answers: 0
    Hang fire on this one for the moment - a bit of closer inspection and it appears that the function I have got in there is actually firing correctly, in that when the page initially loads it is doing what is needed.....going through all rows and re-opening them if needed.

    The actual problem is that the expanded row isn't showing after a pagination change.

    I'm going to pull together an example page for this to describe it visually - Allan, this is the final piece of the puzzle on that advanced example I've mention to you previously.
This discussion has been closed.