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

Marie93Marie93 Posts: 2Questions: 1Answers: 0

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

Sign In or Register to comment.