Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I dynamically change the store of the grid Ext JS

Tags:

extjs

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 ?

like image 883
Dimitri Avatar asked Aug 09 '13 13:08

Dimitri


1 Answers

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

like image 109
Chris Farmer Avatar answered Sep 22 '22 18:09

Chris Farmer