Consider the following scenario:
- User views a grid on a page as displayed on Screen1
- Notice the active page on the grid is page '2'
- User then clicks on 'Edit' link on any row of grid
- User navigates to another screen Screen2
- User then clicks on Cancel button on this screen to return to page with grid i.e. Screen1
- Ideally when user returns to this screen, page '2' should still be the active page.
- DataGrid control has a new 'CurrentPage' property, see Screen3
- The default value of CurrentPage property is 1 i.e. first page
- This property can be configured to the value of a page parameter
- If the value of page parameter is empty, grid will default to the first page
- When navigating from Screen1 to Screen2, pass the current page of grid as a page parameter to Screen2
- This can be done by making use of new 'CurrentPage' control property of DataGrid, see Screen4
- When navigating back from Screen2 to Screen1, pass the page parameter value back, see Screen5
- The 'CurrentPage' property of grid should be configured to be this page parameter
I encourage all Stadium designers to start using this feature on new and existing applications.