I would like to know how ot update the data of the dojo.dijit.tree component dynamically. At the moment I\'m creating the tree using dojo.data.ItemFileReadStore and dijit.tree.F
Updating your store will automatically update your tree!
Then save the store and the tree will update.
FileWriteStore.fetch({
query: { color: "red" },
onComplete: function(items){
for (var i = 0; i < items.length; i++){
FileWriteStore.setValue(items[i], "color", "green");
}
FileWriteStore.save();
}
});