showing out of not update in Datatable when filter data
showing out of not update in Datatable when filter data
FreelancerDeveloper
Posts: 2Questions: 1Answers: 0
axios.get('/api').then(response=>{
this.books=response.data.books;
// $('#myTable').DataTable();
setTimeout(() => {
$('#myTable').DataTable()
}, 250)
});
}
anyone who guide me how to update showing record out of record number when filter data? this datatable work perfectly but after filter it doesnot update showing count
Edited by Kevin: Syntax highlighting. Details on how to highlight code using markdown can be found in this guide
Replies
That small code snippet isn't much to go on. I'm guessing you are updating the table without using Datatables APIs so Datatables doesn't know about the changes. See this FAQ for more details.
Please provide a link to your page or a test case showing the issue so we can see what you are doing and help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin