Reloading HTML Sourced Data
Reloading HTML Sourced Data

I am wondering if it is possible to add a refresh button on a table with HTMl sourced data? I have a few Datatable instances on my site, and I have been able to refresh my ajax sourced table with $('#data').DataTable().ajax.reload();
, but I cannot figure out how to refresh with HTML sourced data. Can anyone point me in the right direction for that? Thanks!
This discussion has been closed.
Answers
If you are updating the html table directly you can use one of the invalidate() methods like
rows().invalidate()
. Or you could use Datatables API to update the table, likerow().data()
orcell().data()
.Kevin