1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    225
    Vote Rating
    0
    seldon is on a distinguished road

      0  

    Default TreePanel

    TreePanel


    Hi,

    Im wondering how to add the TreePanel as ContentPanel (like the gridpanel, from which i can get the grid)? Cause if thats not possible, how can i get the treepanel from a contentpanel without saving a reference to the tree in a var ?

    Thanks,

    Seldon

  2. #2
    Ext User
    Join Date
    Mar 2007
    Posts
    225
    Vote Rating
    0
    seldon is on a distinguished road

      0  

    Default


    I am still wondering how i can do this?

  3. #3
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    The tree doesn't require a special panel. It fits it's container naturally.

    You could drop it in the config:

    ... new Ext.ContentPanel('tree-el', {tree: yourTree});

    Then it will be available as panel.tree.

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    225
    Vote Rating
    0
    seldon is on a distinguished road

      0  

    Default


    Ah thats smart! I didnt know that the config object worked like that!

    Cool, thnx!

Similar Threads

  1. treepanel of yui-ext 0.40
    By humpdi in forum Ext 1.x: Help & Discussion
    Replies: 7
    Last Post: 20 Feb 2007, 2:51 PM
  2. TreePanel
    By dolittle in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 20 Feb 2007, 2:12 PM
  3. TreePanel not functioning
    By jack.slocum in forum Ext 2.x: Help & Discussion
    Replies: 12
    Last Post: 20 Feb 2007, 4:13 AM
  4. Bug in new TreePanel
    By manugoel2003 in forum Ext 1.x: Bugs
    Replies: 2
    Last Post: 24 Jan 2007, 11:43 PM
  5. new TreePanel
    By alex1er in forum Community Discussion
    Replies: 2
    Last Post: 8 Jan 2007, 10:31 AM

Thread Participants: 1