PDA

View Full Version : Nestedlist and populating child lists after creation



Courthold
16 Feb 2011, 8:55 AM
Hi there,

I'm still getting my head around the way various things are done in Sencha/ExtJS, and have come across one question I've not been able to find an answer or example for.

I would like to have a nested list - the initial root list has data available and displayed, but when pressing an item in the list I'd need it to go and perform some action (ajax, local db call, whatever that may be) and retrieve the data for that particular child-list, rather than the entire thing already being loaded into a store (which is what most examples seem to use).

Is this possible, and if so what might that code look like?

Many thanks.

JELaVallee
1 Mar 2011, 11:30 AM
Have a look at my solution to something similar to what your asking over here:

http://www.sencha.com/forum/showthread.php?121651-NestedList-with-JSON-service-for-each-list/page2&highlight=nestedlist