Hello, when I create two or more windows with the same grid and relative datastore in the designer, at run time, does each window have its own instance of the datastore?

Thanks

jarrednicholls

5 Oct 2010, 4:03 AM

Hi bozzoz,

Each window will be sharing the same instance of Store, which is looked up via the Ext.StoreMgr. If this is not what is desired, you can clear the store configuration for one of the grids and configure a new instance in your implementation code.

bozzoz

5 Oct 2010, 5:20 AM

Thank you Jarred!

bozzoz

14 Jan 2011, 12:26 AM

Hi Jarred, how do I reset the store configuration and set the new instance? Can you post me an example?
Thanks

// Reconfigure the grid with a new Store and its same column model
// See: http://dev.sencha.com/deploy/dev/docs/?class=Ext.grid.GridPanel&member=reconfigure
// There are caveats to note in the documentation of "reconfigure"
grid.reconfigure(store, grid.getColumnModel());