I'm attempting to use a NestedList with multiple Models using the Sencha Touch Beta 1 framework; in particular, I would like to render a NestedList component which displays Orders, each of which hasMany Products.
My simplified test application creates a TabPanel. There's a single Controller and View, and to the View I've added a NestedList which loads a Store. I would like to make a single AJAX call and load the data of Orders and Products as follows:
You can see a demo at http://www.tillertowardstrouble.com/...ist/index.html - the source is browsable at https://github.com/rkaiser0324/sench...t-nested-model
The problem is that I cannot get the NestedList to populate using these Models. Do NestedLists even support associated Models? Looking over the NestedList examples, they all appear to use a single Model, without any associated Models. Even the KitchenSink demo (http://docs.sencha.com/touch/2-0/tou...emo/nestedlist) only defines a Car model, where I would expect Continents, Countries, etc. as well. And this forum post (http://www.sencha.com/forum/showthre...-nested-models) asked the exact question but didn't get an answer as to Touch 2 support.
Can you point me how to structure my data and Models so it can be consumed by the NestedList?