11 Jan 2013 8:51 AM #1
Unanswered: TreePanel to use different store at each level?
Is there a way to build a tree so that level1 nodes use Store1, level2 child nodes use Store2, and so on?
The reason I want to do that is because in my tree the data at each level are different and need to be fetched using different proxies/urls and tie to different models.
13 Jan 2013 9:16 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
You can use a TreeStore and when you expand a node that doesn't have any children defined it will then try to load the nodes for that node sending the id of the node that was expanded.Mitchell Simoens @LikelyMitch
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 firstname.lastname@example.org
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.
13 Jan 2013 8:27 PM #3
13 Jan 2013 8:44 PM #4
Also since my 2nd service url /services/xyz/id would return a different json (at least the root will be different for my reader), how do I specify the reader in my TreeStore? Is it possible to update the reader at run time?