PDA

View Full Version : Ext.view.Tree creates is own store, an Ext.data.NodeStore.



ligaard
29 Jul 2011, 5:44 AM
In Ext.view.Tree [1] the initComponent creates it own store. The store is a Ext.data.NodeStore. This strikes me as odd, since treeview accepts a config option to specify the store. As far as I can tell, the NodeStore object being instantiated overswirtes the reference to the store that was set up in the config of the TreeView. The TreeView does show the folders in the Folders store that I gave it.

So is it correct that TreeView has an auxillary store of type NodeStore, and what is the relation with the TreeStore I configure the TreeView with and the NodeStore the TreeView itself creates?

[1] Source, http://docs.sencha.com/ext-js/4-0/source/View2.html#Ext-tree-View