View Full Version : selectPath does not select node in tree

10 Dec 2013, 4:26 AM
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.

me.selectPath(me.pathToSelect, null, null, function(success, node) {

Why doesn't the node get selected while success is true?

Thanks in advance, Tinie

Gary Schlosberg
12 Dec 2013, 10:17 AM
In which version of ExtJS are you seeing this issue? Anything unusual about your tree?

16 Dec 2013, 6:18 AM
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.

16 Dec 2013, 6:45 AM
I've found the solution (with some help of other forums).

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