Demo

State persistence

Documented in State persistence.

State persistence

A grid with an id and persistState saves sorting, filters, paging, column order and widths to localStorage and restores them after a reload; buttons read, restore, reset and serialize the state.

Order
Customer
Country
Product
Amount
Placed
ORD-10000
Jun Park
Japan
Kettle
$259.60
Jun 21, 2026
ORD-10001
Aiko Tan
Germany
Filter beans
$59.50
Jun 26, 2026
ORD-10002
Bao Nguyen
France
Grinder
$857.85
Jul 16, 2026
ORD-10003
Aiko Tan
Malaysia
Oolong tea
$103.28
May 8, 2026
ORD-10004
Farah Aziz
Portugal
Pour-over kit
$199.50
Oct 3, 2026
ORD-10005
Bao Nguyen
Malaysia
Espresso beans
$99.90
Aug 11, 2026
ORD-10006
Bao Nguyen
France
Grinder
$877.20
Jan 13, 2026
ORD-10007
Jun Park
Malaysia
Grinder
$645.00
Dec 28, 2026
ORD-10008
Farah Aziz
Malaysia
Filter beans
$119.70
Aug 21, 2026
ORD-10009
Aiko Tan
Malaysia
Grinder
$1,206.15
Jun 23, 2026

Sort, filter, page, resize or drag a column, then reload the page: the grid comes back as you left it.