datatable reload complete event code example
Example 1: reload ajax datatable
$('#example').data.reload();
Example 2: ajax datatable reload paging retained
// table.ajax.reload(callback, resetPaging)
table.ajax.reload(null, false)
Example 3: datatables keep order and page selection page refresh
$('#offersTable').dataTable({
"bStateSave": true,
"fnStateSave": function (oSettings, oData) {
localStorage.setItem('offersDataTables', JSON.stringify(oData));
},
"fnStateLoad": function (oSettings) {
return JSON.parse(localStorage.getItem('offersDataTables'));
}
});