Demo

Controlled grid state

Documented in State persistence.

Controlled grid state

The application owns the sort, filters, search, page, hidden columns and selection through reactive props and change events, takes a getState() snapshot and restores it without recompiling columns.

Order
Customer
Country
Product
Amount
ORD-10252
Farah Aziz
Malaysia
Grinder
$1,548.00
ORD-10007
Aiko Tan
France
Grinder
$1,470.60
ORD-10133
Chen Wei
Portugal
Grinder
$1,470.60
ORD-10203
Bao Nguyen
Japan
Grinder
$1,470.60
ORD-10385
Chen Wei
Malaysia
Grinder
$1,470.60
ORD-10157
Elif Kaya
Malaysia
Grinder
$1,419.00
ORD-10303
Hana Sato
Japan
Grinder
$1,419.00
ORD-10189
Hana Sato
Malaysia
Grinder
$1,393.20
ORD-10250
Hana Sato
Japan
Grinder
$1,393.20
ORD-10026
Goran Petrov
Malaysia
Grinder
$1,348.05

Sort, filter, search, page, hide or select in the grid, or use the buttons: both sides stay in sync.

{
  "sortBy": [
    {
      "field": "amount",
      "direction": "desc"
    }
  ],
  "filters": [],
  "search": "",
  "page": 1,
  "hidden": [],
  "selected": []
}