1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    Centreville, VA
    Posts
    8
    Vote Rating
    0
    pscalouc is on a distinguished road

      0  

    Default TreeModel Question

    TreeModel Question


    I had a general question about proper use of a Tree Model. I have a tree model and a tree store and everything works fine. My application also shows the data in a non-tree format, so I have a standard grid with a store. The store is currently using the same TreeModel that that my TreeStore does. Things seems to be working just fine.

    My question is are there any known pitfalls with using a TreeModel in a non-Tree Model store? Should I use a version of the model that is not a TreeModel in a non-tree store. Thanks.
    -->

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,997
    Vote Rating
    649
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    TreeModel extends Ext.data.Model, so it's only adding extra behaviour.

    Short answer: no problem using it.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!
    -->

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    Centreville, VA
    Posts
    8
    Vote Rating
    0
    pscalouc is on a distinguished road

      0  

    Default


    Thanks for the quick response evant. That was my guess as well, but figured I would check.
    -->

Thread Participants: 1