How can I change the attributes of a tree node?
One tree node has the following attributes:
{"id":"75",
"description":"My Tree Node",
"status":"25"
"uiProvider":"col",
"leaf":true}
Now my script receives the following data
{
"id":"75",
"status":"100",
"cls":"done"
}
I try to update the attributes (UPDATED):
// a.result.data has the new data and taskID is the node's id
for (var property in a.result.data)
{
tree.getNodeById(taskID).attributes[property] = a.result.data[property];
}
The tree, however, does not get updated.
How can I make the tree show the changes? I need the node to change existing attributes and add the new attributes.
I appreciate your help!