Dimitri
Dimitri

Reputation: 2878

Can I dynamically change the store of the grid Ext JS

So I have the grid which obviously has some store and on beforerender event I want to change the store of the grid? Can I do that ? If yes, how ?

Upvotes: 6

Views: 8096

Answers (1)

Chris Farmer
Chris Farmer

Reputation: 25425

The reconfigure method should do this for you:

reconfigure ([store], [columns])

Reconfigures the grid with a new store/columns. Either the store or the columns can be omitted if you don't wish to change them.

http://docs-origin.sencha.com/extjs/4.1.3/#!/api/Ext.grid.Panel-method-reconfigure

Upvotes: 9

Related Questions