Once we get a tree node of the dojo tree(for Right click/click), we can find out the root node of the tree .
We get the values of the nodes from the datastore that was used to create the tree.
var tn =dijit.getEnclosingWidget(e.target);
while(parent.indent >0){
// get the value from the nodes from the data store
console.debug(store.getValue(parent.item, 'name'));
parent=parent.getParent();
}
scrolling="no" frameborder="0"
style="border:none;" width="90px" height="20px">
No comments:
Post a Comment