For all grids State Persistence samples: Flat Grid, Hierarchical, Tree Grid, Pivot, the below router events subscription does not seem to work for saving the state upon navigating via routerLink or reloading the page, as the samples description states it should do:
The "Reset" button does not really reset most of the features, such as pinned and hidden columns, paging state. It does reset the sorting/filtering and selection though.
For the Tree Grid demo, an error is thrown when performing the steps (might not be related to the router event, though):
And for the Pivot grid, the buttons seem to be off:
Steps to reproduce
Open the demo in any of the above linked topics
Perform some action on the grid, such as sorting a column
Click the "Leave" button
Click "Go back"
Result
When clicking on the "Leave" or "Reload" the state is not persisted. One has to click the "Save state" button in order to later restore the state.
Expected result
Leaving the page by clicking on the "Leave" or "Reload" button to save grid state to localStorage.
Reset all configurable grid features when clicking the "Reset" button
Tree grid sample not to throw an error.
Correct styling for buttons
Attachments
Attach a sample if available, and screenshots, if applicable.
Description
routerLink
or reloading the page, as the samples description states it should do:The "Reset" button does not really reset most of the features, such as pinned and hidden columns, paging state. It does reset the sorting/filtering and selection though.
For the Tree Grid demo, an error is thrown when performing the steps (might not be related to the router event, though):
Steps to reproduce
Result
When clicking on the "Leave" or "Reload" the state is not persisted. One has to click the "Save state" button in order to later restore the state.
Expected result
Attachments
Attach a sample if available, and screenshots, if applicable.