Results 1 to 4 of 4

Thread: selectPath does not select node in tree

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    9
    Answers
    3

    Default Answered: selectPath does not select node in tree

    I'm trying to select a node in the tree, with selectPath.

    When i run the code underneath it will give a success = true, but the node still isn't selected.

    Code:
    me.selectPath(me.pathToSelect, null, null, function(success, node) {
            alert(success);
    });
    Why doesn't the node get selected while success is true?

    Thanks in advance, Tinie

  2. I've found the solution (with some help of other forums).

    The tree must be rendered and visible to select a path correctly.

  3. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    In which version of ExtJS are you seeing this issue? Anything unusual about your tree?

  4. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    9
    Answers
    3

    Default

    I'm using version 4.2.I don't think there's anything unusual about the treestore.The selectPath also returns success=true, so in my opinion it should have selected the node.

  5. #4
    Sencha User
    Join Date
    Dec 2010
    Posts
    9
    Answers
    3

    Default

    I've found the solution (with some help of other forums).

    The tree must be rendered and visible to select a path correctly.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •