Getting "The given node is not part of the edge" Exception

In my diagram I was getting StackOverflow exceptions so I tried turning on EnableCycleDetection which then gave me the "given node is not part of the edge" exception instead. I am using a DiagramControl in "HierarchialLayout". The steps involved are:

1.) Drag an existing connection to another Node
2.) Undo the connection via:
"DiagramCommandManager.Undo.Execute(diagramView.Page, diagramView);"
3.)Create a new connection and then refresh the tree:

HierarchicalTreeLayout tree = new HierarchicalTreeLayout(diagramModel, diagramView);
tree.RefreshLayout();

At that point I get the error mentioned above and my diagram gets a "Virtual Node". What causes this and how can I avoid it?


1 Reply

MA Maria Amal Raj T Syncfusion Team March 23, 2011 09:36 AM UTC

Hi Phil,

This has been confirmed as a defect and this fix will be availabe in our upcoming release. We have created a Direct Trac incident #78667 on your behalf. So, if you are interested in getting a patch, please get in touch with us through our Direct Trac support system.

Regards,
Maria Amal Raj T,
Diagram WPF & Silverlight Team,
[Syncfusion].



Loader.
Up arrow icon