Hi everybody!
Hopefully somebody can help me with this problem. I have a dojo.Tree which I love to iterate to set features after it's initialization.
var treeModel = new dijit.tree.ForestStoreModel({ store: store, query: { "type": "continent" }, rootId: "root", rootLabel: "Continents", childrenAttrs: ["children"] });
var tree = new dijit.Tree({
model: treeModel,
dndController: "dijit.tree.dndSource"
},
"treeThree");
var nodeMap = tree._itemNodesMap;
for(var nodeKey in nodeMap)
{
var nodeItem = nodeMap[nodeKey][0];
nodeItem.iconNode.draggable = "false";
}
var widgets = tree.getChildren();
for(var widget in widgets)
{
dojo.byId('output').innerHTML += widget.id.toString();
}
gives me nothing out!
Can somebody tell me the steps how to iterate, determine the type of item and set the desired options like disable dragging and setting an icon?!
For any answer I would kindly thank you.
Tamer