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