13 Apr 2013 11:07 AM #1
Treepanel with multiple levels.
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.
RootSubroot 1Child1aChild1bSubroot 2Child2aChild2b
15 Apr 2013 8:02 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
How are you getting the subroots to load? Should be able to use the children property of their data and pass in the childrenMitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
16 Apr 2013 12:41 PM #3
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.