How can I refresh my DataTable after I edit a row?
This question has an accepted answers - jump to answer
table.draw(); https://datatables.net/reference/api/draw()
There is a function called:
table.ajax.reload();
This loads the Data Table as if I reloaded the page.
Thanks @onepood
Yes, if you use the ajax option then ajax.reload() is the way to do it.
ajax
ajax.reload()
If you use server-side processing then you can use draw() (since, by definition that requires an Ajax reload).
draw()
Allan
Thanks @onepood and @allan
It looks like you're new here. If you want to get involved, click one of these buttons!
Answers
table.draw();
https://datatables.net/reference/api/draw()
There is a function called:
This loads the Data Table as if I reloaded the page.
Thanks @onepood
Yes, if you use the
ajax
option thenajax.reload()
is the way to do it.If you use server-side processing then you can use
draw()
(since, by definition that requires an Ajax reload).Allan
Thanks @onepood and @allan