I am storing the selected grid item in local storage so the state of the app can be maintained between refreshes.
Upon reloading the SPA, I want to restore the state of the grid, and that includes switching to the page where the first selected item is.
Some issues that make this impossible:
1. I do not know the page of the item, since the number of items in the grid could have changed since last load and therefore I can't use/save the page as a mechanism for showing the first selected item on reload.
2. If I use ViewChild(GridComponent) grid, then grid.data is just a collection of rows for the current page and won't show the prior selected item if the number of items in the grid has changed.
3. If I use my own collection as a mechanism for showing the first selected item (by setting the current page to the index of the selected item in my own collection divided by page size), it will not match the kendo grid's internal collection (because of sorting etc).
What is the correct way to set the grid to the first selected item between browser reloads?