Skip to content

Data Grid — State persistence

Data Display

Save the grid state and restore it when the user comes back.

Examples

Save and restore the view

stateKey saves the sort, filters, search, page, page size and column widths, order and visibility in localStorage and restores them when the grid comes back: sort or resize a column, then reload the page. getState() / setState() store the same object elsewhere (user settings on the server); resetState() returns to the defaults and forgets the saved view.

No filters active
Ana Popescu Paid 120.00
Mihai Ionescu Open 75.00
Elena Dumitru Paid 310.00
Andrei Stan Refunded 42.00
Ioana Marin Open 198.00