Is there an event fired 'before' or 'after' paging action?

Is there an event fired 'before' or 'after' paging action?

iammarine30iammarine30 Posts: 4Questions: 0Answers: 0
edited December 2011 in Feature requests
Is there an event fired 'before' or 'after' paging action?

It could offer an opportunity to insert some code into my application.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    The 'page' event is fired after the page has been changed: http://datatables.net/docs/DataTables/1.9.beta.1/#page_details . There is no event before the page change though. Could you just run whatever action is needed before calling the page change function?

    Allan
  • iammarine30iammarine30 Posts: 4Questions: 0Answers: 0
    Thanks, Allan.

    My case is the layout of the table would be disorder after paging action if there are any 'detail-row' opened.

    I need to close all detail-row silently before paging action.

    Marine Lee
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I see - it might be that you want to write a pagination plug-in that will do exactly what you need then: http://datatables.net/development/pagination . There are examples in the plug-ins section as well.

    Allan
This discussion has been closed.