Reputation: 2528
I've this problem. I'm using dijit.Tree with dojox.data.JsonRestStore as datasource. All nodes are lazy loaded. When I try to programmatically select a node using tree.set("path", [1,2]) I get an error saying "Could not expand path at undefined"
Is it possible to use tree.set("path"...) when the tree structure is being loaded dynamically ?
My code contains 2 files. source.php is the implementation of data source
tree.php is available here http://jsfiddle.net/hd2MZ/2/
source.php is available here http://jsfiddle.net/6zu3d/
Please help :)
Upvotes: 2
Views: 1516
Reputation: 161
I see a couple potential issues...
... where you are trying to set the path I would try the following:
tree.set("path", ['$root$', '1', '2']);
Upvotes: 1