paging not show correct total entries
paging not show correct total entries

My data have 12 record but datatable just display 10 entries. Although I have entered more data, it still displays the total record as "Showing 1 to 10 of 10 entries"
This discussion has been closed.
Answers
So either Data Tables is broken or you code. I guess it is the latter ... But who can really tell without seeing your code?
Please read: https://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read#latest
So either Data Tables is broken or you code. I guess it is the latter ... But who can really tell without seeing your code?
Please read: https://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read#latest
If you're just adding the rows to the DOM, you'll need to call
rows().invalidate()
to tell DataTables to rescan the table. Alternatively, userow.add()
to add the row to the table.If that doesn't help, as rf1234 said, we'll need to see the code - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin