1. #1
    Ext User
    Join Date
    Apr 2007
    Posts
    36
    Vote Rating
    0
    Pagebaker is on a distinguished road

      0  

    Default Tree: getSelectionModel().select()

    Tree: getSelectionModel().select()


    If you use
    Code:
    tree.getSelectionModel().select(node);
    before
    Code:
    tree.render();
    The selected node doesn't get the selected class ('x-tree-selected'), but it is selected.

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

      0  

    Default


    You can't select a node if the tree doesn't exist. You must render any component before trying to interact with it.
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

  3. #3
    Ext User
    Join Date
    Apr 2007
    Posts
    36
    Vote Rating
    0
    Pagebaker is on a distinguished road

      0  

    Default


    Yeah, that's what i tought, but still the node gets selected. Oh well not much to worry about though

Thread Participants: 1