[API] On data loaded callback

[API] On data loaded callback

TheWickermanTheWickerman Posts: 3Questions: 0Answers: 0
edited February 2014 in DataTables 1.9
Hi,
I need to perform an operation when the JSON file is downloaded by DataTables. Is there a way to do so?

This is how I initialise DataTable:
[code]
var table = $('#userlist').dataTable( {
"bProcessing": true,
"sAjaxSource": 'ajax.php?userlist'
});
[/code]

Replies

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    You mean immediately after it has been downloaded and processed for display? Use fnInitComplete .

    Allan
  • TheWickermanTheWickerman Posts: 3Questions: 0Answers: 0
    Thank you very much, that works perfectly. Sorry for my failure to find this in docs.
This discussion has been closed.