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

LayoutManager problem

Thread ID:





103320 Apr 22,2012 12:32 PM UTC Apr 24,2012 08:42 PM UTC ASP.NET Web Forms (Classic) 1
Tags: DiagramWebControl
Asked On April 22, 2012 12:32 PM UTC


Are there options in WebDiagramControl similar to options in Silverlight DiagramControl, to set vertical spacing, horizontal spacing and space between subtrees:

//Tree spacing properties
diagramModel.VerticalSpacing = 55;
diagramModel.HorizontalSpacing = 10;
diagramModel.SpaceBetweenSubTrees = 10;

These options are necessary for me, because I'm trying to draw organizational diagram


Amsath Ali M [Syncfusion]
Replied On April 24, 2012 08:42 PM UTC

Hi Peter,

Thanks for using Syncfusion products.

Yes the DiagramWebControl contains to set VerticalSpacing and horizontal spacing between nodes in the layout managers but there is no option to set space between trees. Please refer the below code snippet to set vertical and horizontal spacing between nodes.

Here is the code:
//OrgChartLayout Manager
public OrgChartLayoutManager(Model model, float fRotation, float fHorizontalOffset, float fVerticalOffset);

public OrgChartLayoutManager(Model model, RotateDirection direction, float fHorizontalOffset, float fVerticalOffset, LayoutType layoutType, int nTreeLevel);

OrgChartLayoutManager dtLayoutMgr = new OrgChartLayoutManager(this.DiagramWebControl1.Model, RotateDirection.TopToBottom, 20, 50,LayoutType.Waterfall, 1, true);
this.DiagramWebControl1.LayoutManager = this.dtLayoutMgr;

For more information, please visit our below online UG documentation link:

Please let us know if you have any queries.

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