PDA

View Full Version : TreePanel : Loading different nodes per level



wayne-oo
16 Aug 2013, 4:26 AM
Hi

I have a tree panel I want to basically use for a CMS which is used to manage music events

the structure I want is:

root
-- event 1
---- settings
---- details
---- instances
---- etc etc
-- event 2
---- settings
---- details
---- instances
---- etc etc
-- event 3
---- settings
---- details
---- instances
---- etc etc

The events are loaded dynamically using a REST service - the next level of nodes (settings, details, instances etc) are standard across all events. I have the 1st level loading - the event names - the problem I am having now is knowing how to append the standard nodes to each of the event nodes?

Obviously clicking on the leaf nodes loads a form or whatever into the main panel.

Anyone got any clues?

Gary Schlosberg
19 Aug 2013, 1:35 PM
If the events are loading, you must be close. Here's an example from which you might be able to get your solution:
http://docs.sencha.com/extjs/4.2.1/#!/example/build/KitchenSink/ext-theme-neptune/#tree-grid

Otherwise, it's much easier for the community to help you if you can post what you've tried so far, and perhaps a sample of the data.