Go to last page if page no longer exists..

Go to last page if page no longer exists..

applapsapplaps Posts: 12Questions: 0Answers: 0
edited June 2013 in General
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

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Can you link me to a test case please, or at least a debugger trace? I'm guessing you are using the built in state saving? I suspect this might have been fixed already in 1.10, but I'm not certain, so a test case would be very useful.

    Allan
  • applapsapplaps Posts: 12Questions: 0Answers: 0
    Hey unfortunately I am unable to link you to a test case or debugger trace...

    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...
  • applapsapplaps Posts: 12Questions: 0Answers: 0
    Anyone...?
This discussion has been closed.