Datatable clientside stopped working
Datatable clientside stopped working

Hi everyone,
I am using client-side pagination on my datatable and it used to work perfectly. It shows the first page data and when next page is clicked or specific page is selected, it doesn't show any data. When I inspect the source, I could see there are all the data loaded but data table isn't showing them when specific page is selected.
Here is how i am loading the page in $(document).ready()
var dataTable = $('#cases-list').DataTable({
paging: true,
pageLength: 25,
"bSort" : false
});
dataTable.on('draw', function () {
filterByDate(null, null);
filterByDateWithin();
filterCases();
});
Answers
How many rows does your table have and how many does the info, ie
Showing 1 to 10 of 57 entries
, element show?Since you have a DOM sourced table I would guess there is something in the HTML
table
that Datatables doesn't support. But without seeing what you have its hard to say. Please post a link to your page or a running test case showing the issue so we can help debug.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Also maybe one of these functions is affecting the display?
Difficult to say without seeing what they are doing.
Kevin