Detect page change on DataTable

Felix picture Felix · Sep 13, 2011 · Viewed 109.8k times · Source

With DataTable I can order, list, do pagination but I want to detect when the pagination changes, I've seen the API but the only one I can do is change the page but no detect this change.

Answer

nimcap picture nimcap · Mar 6, 2012

You may use fnDrawCallback or fnInfoCallback to detect changes, when next is clicked both of them are fired.

But beware, page changes are not the only source that can fire those callbacks.