Equivalent of oTable.fnSettings().fnRecordsDisplay()
Equivalent of oTable.fnSettings().fnRecordsDisplay()
BabyAzerty
Posts: 4Questions: 0Answers: 0
I don't see how to get the recordsDisplay with the new API ? Is there a direct way ?
By the way, my table's data is dynamic (ajaxed)
Thanks
By the way, my table's data is dynamic (ajaxed)
Thanks
This discussion has been closed.
Replies
Allan
However, it doesn't work and always shows 0.
My #table does an ajax request, and I want to get the new total records.
[code]
$('#table').on('xhr.dt', function(e, settings, json) {
console.log(json.recordsTotal); //(Meanwhile method that works)
console.log($('#table').DataTable().page.info()); //Always 0 for all the value but length (=10)
});
[/code]
With a static table, no problem.
Allan