DataTables Refresh on Callback when paging
DataTables Refresh on Callback when paging
Hello,
I have a DataTable that displays a popup window which allows the user to edit values. When I save the values, I do a callback to refresh the table. This works just fine as long as I'm on page 1. If I'm on any other page, page 1 is re-displayed after the refresh. My code for refresh is the following:
$('#products').DataTable().ajax.reload();
Any words of wisdom? How can I refresh only the page I'm currently on?
Thanks.
--- Val
This question has an accepted answers - jump to answer
Answers
The
ajax.reload()
docs show how to stay on the same page.Kevin
Well I feel stupid! Not sure how I missed that, it's right there in black and white. Thanks @kthorngren
--- Val