Go to last page if page no longer exists..
Go to last page if page no longer exists..
I am experiencing the following issue:
-Displaying 30 rows per page.
-Total 93 Rows.
-On page 4 viewing rows 91-93.
-Navigate to a new tab away from DatabaTable. (Rows 91-93 are deleted by another user).
-Navigate back to DataTable.
-I am not on any page according to pagination, and message says "Displaying rows 91 to 90 - 90 results total"
I basically want the behavior to be, for the above scenario, when I go back to the datatable it recognises that the row count has changed and takes me to the last available page i.e. in the above scenaro I would be taken to page 3, rows 61-90... or if 33 rows were deleted I would be taken to page 2, rows 31-60.
This issue only occurs when you are on the last page of the DataTable and rows are deleted whilst browsing elsewhere
Thanks
-Displaying 30 rows per page.
-Total 93 Rows.
-On page 4 viewing rows 91-93.
-Navigate to a new tab away from DatabaTable. (Rows 91-93 are deleted by another user).
-Navigate back to DataTable.
-I am not on any page according to pagination, and message says "Displaying rows 91 to 90 - 90 results total"
I basically want the behavior to be, for the above scenario, when I go back to the datatable it recognises that the row count has changed and takes me to the last available page i.e. in the above scenaro I would be taken to page 3, rows 61-90... or if 33 rows were deleted I would be taken to page 2, rows 31-60.
This issue only occurs when you are on the last page of the DataTable and rows are deleted whilst browsing elsewhere
Thanks
This discussion has been closed.
Replies
Allan
The test case I can provide you with is the one written above..? Basically a user on a page, navigates away, state is saved using bSaveState, rows are deleted from database (and therefore DataTable), comes back to a page which no longer has records yet they are not redirected to the new last page...