View Full Version : Getting node from path in a TreePanel?

30 Oct 2012, 5:43 AM
Hi everybody!
I need to select nodes in a Tree Panel and I have their path (i.e. rtProcedi/a2012/pxy/dxy) but MultiSelectionModel.select method needs TreeNode , nota a path as a parameter. How can I retrieve a node from its path?

James Goddard
30 Oct 2012, 5:52 AM
expandPath takes a callback paramter which is passed the treenode. You could also split the path and use the last item (which is the id of the node) and call getNodeById on the store.

30 Oct 2012, 6:06 AM
Thanks! :)