We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

directed tree layout and deleting nodes

Thread ID:





98827 Apr 2,2011 09:03 PM UTC Aug 9,2011 08:52 PM UTC ASP.NET Web Forms (Classic) 2
Tags: DiagramWebControl
Mary Fontana
Asked On April 2, 2011 09:03 PM UTC

I have an application where I build a directed tree.
In this application, I need to be able to clear all nodes and rebuild a new directed tree layout.

I do this:


MyRebuildTree(); //this also sets a new diagramModel.LayoutRoot node

DirectedTreeLayout tree = new DirectedTreeLayout(diagramModel, diagramView);

I also tried this:

DirectedTreeLayout tree = new DirectedTreeLayout(diagramModel, diagramView);
(diagramView.Page as DiagramPage).InvalidateMeasure();
(diagramView.Page as DiagramPage).InvalidateArrange();

The problem I am having is the diagram model's nodes are not being removed/cleared.
When the tree is redrawn the old nodes appear stacked in one corner of the display.

How do you remove nodes/connections from the diagram model?

Thanks in advance,

Mary Fontana
Replied On April 2, 2011 09:04 PM UTC

sorry I meant this post for the WPF diagram. I will re-post

Brent Snyder
Replied On August 9, 2011 08:52 PM UTC

I am having the same issue. Any update?


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon