Does fnPageChange have a callback?

Does fnPageChange have a callback?

fcastellanosfcastellanos Posts: 1Questions: 0Answers: 0
edited May 2012 in DataTables 1.8
I wan to know if 'fnPageChange' have a callback, I want to do something with the new data that will be loaded into the table.

Any hints?

Replies

  • allanallan Posts: 61,716Questions: 1Answers: 10,108 Site admin
    From the documentation ( http://datatables.net/ref#fnPageChange ) no it doesn't. However, I can certainly see that one might be useful - I've added this to my roadmap.

    Until then, have you tried using fnDrawCallback ? Or binding an event to the 'draw' customer event (you could use:

    [code]
    $(table).one('draw', function () {...} );
    table.fnPageChange( ... );
    [/code[

    for example.

    Allan
This discussion has been closed.