pratap
1
I am trying this
// variable nodeData is node Array ordered node i.e nodes are sorted on basis on its location
myDiagram.startTransaction(“modify nodeDataArray”);
myDiagram.model.nodeDataArray = nodeData;
myDiagram.commitTransaction(“modify nodeDataArray”);
after that i am accessing
myDiagram.nodes.each(function(node){
// here nodes are coming in previous order only i.e node data is not modified
});
walter
2
I gather that your new Array holds the same node data objects as before, just in a different order. In that case the behavior that you see is correct.
You could iterate over the Array and call Diagram.findNodeForData to get the corresponding Node.
pratap
3
thank you…
when myDiagram.nodes get updated?
walter
4
The order of Diagram.nodes is not specified, so you cannot depend on any particular order.
pratap
5
I was also tried to find Diagram.nodes. But it is not there.
Okay…