boatcoder
boatcoder

Reputation: 18107

How to force extjs grid to save state

If the user changes a column size, the grid stateManager saves the state of the grid. However if you provide a reset button and use grid.reconfigure() the state does not get saved.

How do you force the grid to issue a state save with a reconfigure?

Upvotes: 1

Views: 1606

Answers (2)

Darin Kolev
Darin Kolev

Reputation: 3411

You can save the current state any time:

grid.saveState();

Upvotes: 1

Greatran
Greatran

Reputation: 190

You can use grid.initState() just after the reconfigure. Like below.

grid.reconfigure(store, columns);
grid.initState();

Eventhough initState() can not find on Ext js documentation this works for with the ver 4.2

Hope this helps

Upvotes: 0

Related Questions