How to go to a page upper than the first one in a datatable
How to go to a page upper than the first one in a datatable

I am using Angular 7 with dataTable. My items' list is shown correctly. When editing one item from the list, let's say in the 4th page of the list, it redirect to another pageto edit it. After saving it will redirect again to items' list page but in the page 1 not 4.
I want to maintain the 4th page. I tried to use this function with my table but it doesn't work
** initComplete: function () {
this.table.page('2').draw("page");
}**
Any advices please good people? thank you
Answers
The
initComplete
function runs only once after the Datatable has initialized. You are probably usingdraw()
orajax.reload()
in another event that runs after editing.Kevin