Issue with Dijit/Tree

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Issue with Dijit/Tree

Harry Devine

In a Dijit Tree that I have, I have code that is selecting a node programatically, but not completely.  The tree is opened up, but the node I want selected is not being selected nor scrolled into view.  I'm using the following logic, taken from the Dijit Tree documentation:


tree.set("paths", [["topRoot", "sitesRoot", "HJD"], ["topRoot", "sitesRoot"]]).then (function(path) {

  console.log ("in paths function.....");

  tree.focusNode(path);

});


Based on the example and write-ups, this should select the node and scroll it into view.  Its doing neither at the moment.  I'm not getting that console.log at all, indicating that the promise is never being fullfilled.  Any ideas as to why?  Or what I need to do to further diagnose this?


Thanks,

Harry


--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Loading...