Datatables Showing 0 to 0 of 0 entries but works fine in incognito mode
Datatables Showing 0 to 0 of 0 entries but works fine in incognito mode
jchungath
Posts: 3Questions: 2Answers: 0
Hello,
Has anyone encountered the issue like data table works fine for sometime in normal browser and then start filtering in load itself and shows 0 to 0 of 0 entries(filtered from n total entries), but shows all the records in incognito mode always in chrome browser?
This question has an accepted answers - jump to answer
Answers
Sounds like you might be manipulating the table in HTML instead of using Datatables API's. For example if you initialize Datatables then populate the table by updating the DOM directly then Datatables won't know about the table data and show 0 entries. See this FAQ for more details.
If this doesn't help then please post a link to your page or a test case replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
stateSave: true was causing the issue. Changed it to false and everything is working as expected. Thanks!