1. #1
    Ext JS Premium Member Ronald Hofstede's Avatar
    Join Date
    Sep 2010
    The Netherlands
    Vote Rating
    Ronald Hofstede is on a distinguished road


    Default 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?

  2. #2
    Sencha User
    Join Date
    May 2009
    Vote Rating
    AndreKR is on a distinguished road



    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.

Similar Threads

  1. Multiple comboboxes sharing the same store (and adding values)
    By cgalpin in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 6 Dec 2010, 7:27 PM
  2. Sharing the same menu and handlers among multiple components
    By gr_great_2000 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 19 Jul 2010, 7:41 AM

Thread Participants: 1