Due to special layout on my webpage I need to get the "recordsTotal" value in a function when I do a table.ajax.reload()
When I do my initial datatable init I have an initCompletefunction where I can get the value in "settings._iRecordsTotal"
But initComplete is not called on ajax.reload. Is there any way to pass the "settings._iRecordsTotal" value when you do a ajax.reload?
I have tried to do a callback function but can 't get i to work: this.$datatable.DataTable().ajax.reload( function(){
this.totalHitsRender();
alert('COME ON')
});
If I could only call my totalHItsRender() function like that....