Wednesday, 10 July 2019

How to reload/refresh jQuery dataTable or Datatables.net ?

////////////////

$('#tableID').DataTable().ajax.reload();


////////////////  Datatables function

https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css
https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js

////////// Method

$(document).ready(function () {
    $('#TableID').DataTable();

});

////////////// Options

$(document).ready(function (){
$('#TableID').dataTable(
  {
      "bPaginate": true,
      "bJQueryUI": true// ThemeRoller-stöd
      "bLengthChange": false,
      "bFilter": false,
      "bSort": false,
      "bInfo": true,
      "bAutoWidth": true,
      "bProcessing": true,
      "iDisplayLength": 10
  });

});



Link---
https://datatables.net/reference/api/ajax.reload()

No comments:

Post a Comment

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...