Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

datatable ajax reload

//declare this var
dtElement: DataTableDirective;

//create method and call it where ever you want to refresh your table
reload(): void {
    this.dtElement.dtInstance.then((dtInstance: DataTables.Api) => {
      dtInstance.draw();
    });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #datatable #ajax #reload
ADD COMMENT
Topic
Name
2+3 =