datatable on draw code example
Example 1: datatable after. draw
$('#example').dataTable( {
"drawCallback": function( settings ) {
alert( 'DataTables has redrawn the table' );
}
} );
Example 2: jquery datatable draw false
redraw the table maintaining current paging position
Example :
var table = $('#example').DataTable();
// Sort by column 1 and then re-draw
table
.order( [[ 1, 'asc' ]] )
.draw( false );