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

HierarchicLayout with multiple parents

Thread ID:





101207 Oct 6,2011 08:06 PM UTC Oct 13,2011 04:09 AM UTC WinForms 3
Tags: Diagram
Linda Clemens
Asked On October 6, 2011 08:06 PM UTC

I have just upgraded to version 9.3, and am having trouble with using the HierarchicLayout manager when a node has multiple parents. This feature worked reasonably well in version 8.3.

I've attached 3 screenshots to illustrate these steps, using the HierarchicTrees_2010 sample code:

- Run

- frmMain displays a set of nodes in a tree layout; each node has only a single parent

- I reversed the direction the connection on the bottom-most node to create a middle node with two parents

- Clicked on the "top-to-bottom" button to refresh

- frmMain refreshes, but the layout is poor.

Am I correct that multiple parents is a feature of this layout manager? Is there a better approach?



Amsath Ali M [Syncfusion]
Replied On October 11, 2011 05:52 AM UTC

Hi Linda,

Thanks for using Syncfusion products.

We are able to reproduce the issue reported by you. We suggest you to set the HierarchicLayoutManager’s “ParentPosition” property to ‘Default’ to get the old behavior. Please refer the below code to achieve your requirement.

Here is the code:
HierarchicLayoutManager dtlm = new HierarchicLayoutManager(this.diagram1.Model, 0,

// Specifies parent position in the layout
dtlm.ParentPosition = ParentPositions.Default;

Here is the Sample:
Hierarchic Trees Layout-303438034.zip

Please try the above sample and let us know if you have any queries.

Amsath Ali. M

Linda Clemens
Replied On October 12, 2011 02:50 PM UTC

Thank you - that solution worked perfectly!

Amsath Ali M [Syncfusion]
Replied On October 13, 2011 04:09 AM UTC

Hi Linda,

Thanks for the update.

Please let us know if you require any further assistance on this. We would be happy to help you out.

Amsath Ali. M


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

This page will automatically be redirected to the 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