View Full Version : Destroying Grids

4 Feb 2014, 5:37 AM
Hello looks like a newbie question but I'm in dubt...
When I destroy a grid It also destroy the store called in the grid or should I trig the destroy store manually like:

Johnny Major
4 Feb 2014, 6:31 AM
You could set the autoDestroy config of your store to true;

Via the documentation

* @cfg {Boolean} [autoDestroy=false]
* When a Store is used by only one {@link Ext.view.View DataView}, and should only exist for the lifetime of that view, then
* configure the autoDestroy flag as `true`. This causes the destruction of the view to trigger the destruction of its Store.

4 Feb 2014, 2:46 PM
Some more discussion of this topic: