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.
Unfortunately, activation email could not send to your email. Please try again.

Avoid Connection Overlapping

Thread ID:

Created:

Updated:

Platform:

Replies:

97397 Nov 23,2010 05:46 PM Dec 9,2010 05:33 PM ASP.NET Web Forms (Classic) 6
loading
Tags: DiagramWebControl
Edward
Asked On November 23, 2010 05:46 PM

Hello,

I'm working on a diagram, but when two or more nodes target the same node, the link overlap.

How can I fix this?


Bala Murugan A.S [Syncfusion]
Replied On November 24, 2010 05:00 AM

Hi Edward,

Thanks for using Syncfusion Products.

You can achieve your requirement by enabling the diagram’s Line Routing and Line Bridging. Please refer our online user guide documents from the below link.

http://help.syncfusion.com/ug_84/User%20Interface/Windows%20Forms/Diagram/default.htm?turl=Documents%2Flinerouting.htm

http://help.syncfusion.com/ug_84/User%20Interface/Windows%20Forms/Diagram/default.htm?turl=Documents%2Flinebridging.htm

Please let me know if you have any conerns.

Regards,
Bala Murugan A.S


Edward
Replied On November 25, 2010 03:01 PM

Hi, on simple diagrams it works, but in complex still happens



overlap_cfb38cf8.zip

Bala Murugan A.S [Syncfusion]
Replied On December 1, 2010 06:27 AM

Hi Edward,

Thanks for the update.

We suspect the reported issue to be a defect and have forwarded this to our Development Team for further analysis. We will update you with our Development Team’s response in one business day (December 2,2010).

Please let me know if you have any concerns.

Regards,
Bala Murugan A.S


Bala Murugan A.S [Syncfusion]
Replied On December 3, 2010 08:50 AM

Hi Edward,

We regret for the delay in responding. We are currently working on this with high priority, we will be updating you with more details on Monday(December 6,2010).

Thank you for your patience.

Regards,
Bala Murugan A.S


Bala Murugan A.S [Syncfusion]
Replied On December 6, 2010 08:47 AM

Hi Edward,

Thanks for your patience.

For your requirement, we suggest you to use different port for the node to prevent from link overlapping.Please refer the code snippet below to achieve this,

[C#]
//Rectangle Node 1
rect1 = new Syncfusion.Windows.Forms.Diagram.Rectangle(100, 400, 100, 40);

//Rectangle Node 2
rect2 = new Syncfusion.Windows.Forms.Diagram.Rectangle(300, 100, 100, 40);

//Rectangle Node 3
rect3 = new Syncfusion.Windows.Forms.Diagram.Rectangle(200, 200, 100, 40);



Syncfusion.Windows.Forms.Diagram.OrthogonalConnector connector = new OrthogonalConnector( new System.Drawing.PointF(50, 50), new System.Drawing.PointF(50, 50));
Syncfusion.Windows.Forms.Diagram.OrthogonalConnector connector1 = new OrthogonalConnector(new System.Drawing.PointF(50, 50), new System.Drawing.PointF(50, 50));

rect1.EnableCentralPort = false;

//creating Custom port for the node
Syncfusion.Windows.Forms.Diagram.ConnectionPoint cp = new Syncfusion.Windows.Forms.Diagram.ConnectionPoint();
Syncfusion.Windows.Forms.Diagram.ConnectionPoint cp1 = new Syncfusion.Windows.Forms.Diagram.ConnectionPoint();
rect1.Ports.Add(cp);
rect1.Ports.Add(cp1);
rect1.Ports[0].OffsetX = 10;
rect1.Ports[1].OffsetX = 50;

rect1.Ports[0].TryConnect(connector.TailEndPoint);
rect2.CentralPort.TryConnect(connector.HeadEndPoint);
rect1.Ports[1].TryConnect(connector1.TailEndPoint);
rect3.CentralPort.TryConnect(connector1.HeadEndPoint);

We have created a simple sample to demonstrate this and the same can be downloaded from the below link,

LineOverlapping-1232221215.zip

Please try the above sample and let me know if this is your actual requirements.


Regards,
Bala Murugan A.S


Edward
Replied On December 9, 2010 05:33 PM

Hi, Thanks it works as I expected


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.

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.

;