Results 1 to 3 of 3

Thread: Treepanel with multiple levels.

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    2
    Vote Rating
    0
      0  

    Default Treepanel with multiple levels.

    Hello,

    I haven't been able to find a simple example on how to configure a tree panel with hierarchical nodes as shown below. I have been able to get the Root and Subroots to populate but I really have no idea how to get the child nodes to populate in the subroots when the tree loads. Could you please direct me to examples or give me a simple code snippet to understand the configuration. Any help is greatly appreciated.


    Root
    Subroot 1
    Child1a
    Child1b
    Subroot 2
    Child2a
    Child2b


    Thank you.
    Akshara.

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Vote Rating
    1390
      1  

    Default

    How are you getting the subroots to load? Should be able to use the children property of their data and pass in the children
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Thank you Mitchell. That helped. When I get a chance, I will post the code here so that it'll be helpful for others. Thank you once again.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •