PDA

View Full Version : Multiple views of the TreePanel



11PlusExamSolutions.co.uk
4 Oct 2012, 9:29 PM
I want to use the same data store for rendering a TreePanel and an Accordion. Basically the tree data is very huge and the nodes are loaded dynamically on expansion of the nodes. I want to be able to share the same data between both the views and also want to keep both the views synchronized.
I can even style the TreePanel to make it work like an accordion (through JS and css) so even sharing on the data between two tree panels will be fine rather than a TreePanel and an accordion.

Please help on how I can achieve this.

Regards,
Lisa
http://www.11plusexamsolutions.co.uk

mitchellsimoens
15 Oct 2012, 8:49 AM
So if you have 2 treepanels using the same store then where does that get you to where you want to be (minus the CSS work)

11PlusExamSolutions.co.uk
18 Oct 2012, 10:25 PM
I am using ExtJs 3.4, the tree does not have an explicit TreeStore. Thats why I want to understand how can I have 2 views of the same tree data.

Regards,
Lisa
http://www.11plusexamsolutions.co.uk (http://www.11plusexamsolutions.co.uk/)