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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to make the connector source the bottom of each node when coming from a data source?

Thread ID:

Created:

Updated:

Platform:

Replies:

145207 Jun 12,2019 01:00 PM UTC Jun 13,2019 10:25 AM UTC WPF 1
loading
Tags: SfDiagram
Jerod Burnett
Asked On June 12, 2019 01:00 PM UTC

Hello, currently I am working on a program that takes a data source and turns it into a diagram with nodes from these sources. These diagrams have different nodes with different shapes and sizes. Currently I am trying to make the connector start at the bottom of each node, it doesn't exactly matter where it connects to on the destination, the source of the connector just has to be on the bottom.

I have gone through some of the provided examples and one that stuck out was Organizational Layout, it has this same desired behavior, but I am unsure where/how this behavior is defined. Any and all help in this matter is very much appreciated, thank you.

Ramya Thirugnanam [Syncfusion]
Replied On June 13, 2019 10:25 AM UTC

Hi Jerod,  
  
Thanks for contacting Syncfusion support. 
  
We have created a simple sample for your requirement. Please find the code example, sample and screenshot for your requirement.  
  
  
  
  
Code Example :  Orientation property helps To connect the connector from bottom of the source node 
  
 
// Initialize Layout Settings for SfDiagram 
 
sfdiagram.LayoutManager = new LayoutManager() 
{ 
            Layout = new DirectedTreeLayout() 
                        { 
                                    Type = LayoutType.Organization, 
                                    HorizontalSpacing = 50, 
                                    VerticalSpacing = 40, 
                                    Orientation = TreeOrientation.TopToBottom, 
                        }, 
}; 
  
Please find the help documentation for layout as below. 
  
Regards,  
Ramya T 


CONFIRMATION

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

Live Chat Icon For mobile
Live Chat Icon