23 Apr 2011 3:37 PM #1
Multiple TreePanels sharing the same TreeStore
Can anyone help me out on this?
I'm trying to have multiple treepanels share a single treestore. Each of the treepanels is supposed to have a different root node, and thus display a different subtree of the store.
But I keep running into troubles trying to get it right. So i'm starting to wonder if what I want is supposed to be possible at all?
23 Apr 2011 6:08 PM #2
The information if being the root node is a property of the node itself. You probably have to subclass TreeStore and Tree and provide a NodeInterface yourself to make this work. (Look at data/TreeStore.js, data/Tree.js and data/NodeInterface.js.)
I think I'd rather store the data in a separate TreeStore and subclass Proxy to make a proxy that provide the three nodes with their respective "view" on the tree data.
By cgalpin in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 6 Dec 2010, 7:27 PM
By gr_great_2000 in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 19 Jul 2010, 7:41 AM