1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    95
    Vote Rating
    0
    ahsec is on a distinguished road

      0  

    Default Answered: Select a node in a tree view

    Answered: Select a node in a tree view


    Hey

    Does someone know how to trigger a select event for a node in a tree view?

    Thanks :-)

  2. Try:

    tree.getSelectionModel().select(node);

  3. #2
    Sencha User
    Join Date
    Oct 2009
    Posts
    95
    Answers
    3
    Vote Rating
    2
    Albareto is on a distinguished road

      0  

    Default


    Try:

    tree.getSelectionModel().select(node);

  4. #3
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,099
    Answers
    113
    Vote Rating
    96
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    if you have the record, you can use the selection model to select it:

    Code:
    tree.getSelectionModel().select(record);

  5. #4
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    95
    Vote Rating
    0
    ahsec is on a distinguished road

      0  

    Default Great guys! Worked like charm!

    Great guys! Worked like charm!


    :-)

Thread Participants: 2