Refresh index of table when updating single TD
Refresh index of table when updating single TD
I'm loading a table with partial data, one of the columns has nothing in it on initial load. Then I use ajax to load the dynamic column. I'm encountering two issues;
1) I'm not sure how to continuously load all the data on all pages - I can only seem to get it to work for the current page.
2) Once loaded, or fully loaded after clicking on all the pages - the sorting on that column doesn't work, I presume I need to refresh the index or call an API command within datatables itself.
Is there a way to do what I'm after? Load only one column using AJAX and then when I refresh the data periodically, refresh the table index?
Many thanks in advance.
Answers
Sounds like you will want to use
rows().invalidate()or maybecells().invalidate(). If this doesn't help then post your code so we can see what you are doing. Better yet a link to your age or a test case replicating the issue.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin