Grid state

The grid state i.e., column widths, column order, filtered columns, sorted columns, paging state, groupModel, etc can be saved in:
  1. browser local storage
  2. or remotely in a database.

It can be saved by
  1. click of a button
  2. automtically when grid is destroyed.
  3. automtically when browser window is closed.

The state can be restored when:
  1. automatically when grid is initialized by calling loadState() in create event.
  2. after grid is created e.g., upon click of a button

Type of state:

The amount and type of state can be precisely controlled by new configuration options stateKeys and stateColKeys

In this example we also save individual close/open state of every node using stateKeys to add groupModel.nodeClose property in the state.