1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    3
    Vote Rating
    0
    11PlusExamSolutions.co.uk is on a distinguished road

      0  

    Default Multiple views of the TreePanel

    Multiple views of the TreePanel


    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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    871
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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)
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.com

    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.

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    3
    Vote Rating
    0
    11PlusExamSolutions.co.uk is on a distinguished road

      0  

    Default


    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

Thread Participants: 1

Tags for this Thread