After updating a datatable row return to the page where the row belongs.
After updating a datatable row return to the page where the row belongs.
Suppose I have a table with many rows and by clicking to i.e. page 40 I update a row through my application's menu.
I would like to know how I should handle such a situation so that after the row's update to be able to return to the page where the row was found. How can I achieve that? Any example? My project is a Laravel project if this helps at all.
Thanks
Answers
Sounds like you are using
draw()orajax.reload()as part of the updated process. You can pass in a paging parameter to both API's to control staying on the same page. Pass infalseas the first aprameter todraw()or the second parameter toajax.reload().If this doesn't help then at a minimum post the to being used to update the row. Better is a link to a test case showing the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin