before send datatable options code example
Example: before send datatable options
var table = $('#example').DataTable();
table.on( 'draw', function () {
alert( 'Table redrawn' );
} );
This could also be written as:
$('#example').on( 'draw.dt', function () {
alert( 'Table redraw' );
} );