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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can't get Connector Rounded Corners to display

Thread ID:

Created:

Updated:

Platform:

Replies:

119160 May 15,2015 03:22 PM UTC May 21,2015 05:19 AM UTC WinForms 3
loading
Tags: Diagram
Bob Puckett
Asked On May 15, 2015 03:22 PM UTC

I am generating a diagram in code.  I add two rounded rectangles and then connect them with an OrthogonalConnector.  I set the EnableRoundedCorners to true and the curveRadius to 10 (or anything).  But, the diagram shows a crisp 90 degree corner.  Here is he code I am using to create the connector:

   private PathNode ConnectNodes(PathNode n1, PathNode n2)
        {
            
            OrthogonalConnector c1 = new OrthogonalConnector(n1.PinPoint, n2.PinPoint);
            c1.EnableRoundedCorner = true;
            c1.CurveRadius = 10;

            c1.HeadDecorator.DecoratorShape = DecoratorShape.FilledCircle;
            c1.HeadDecorator.Size = new SizeF(ARROW_HEAD_SIZE, ARROW_HEAD_SIZE);
            c1.TailDecorator.DecoratorShape = DecoratorShape.FilledFancyArrow;
            c1.TailDecorator.Size = new SizeF(ARROW_TAIL_SIZE, ARROW_TAIL_SIZE);
            c1.LineStyle.LineColor = ARROW_DEFAULT_COLOR;
            c1.LineStyle.LineWidth = ARROW_LINE_WIDTH;
            n1.CentralPort.TryConnect(c1.HeadEndPoint);
            n2.CentralPort.TryConnect(c1.TailEndPoint);

            myDiagram.Model.AppendChild(c1);
            return c1;

        }

What am I doing wrong?  Thanks.



Naganathan Ganesh Babu [Syncfusion]
Replied On May 18, 2015 07:17 AM UTC

Hi Bob,

Thanks for using Syncfusion product.

We are unable to reproduce reported issue at our end. We have using your code snippet and create a simple sample to achieve your requirement. Please refer the below attached sample and video for your references.

Here is the video:
Video

Here is the sample:
Sample

Please let us know if any concerns.

Regards,

Naganathan K G

Bob Puckett
Replied On May 20, 2015 05:38 PM UTC

Thank you for the reply.  When I try your sample, it does work.  

Apparently, the issue is that when LineBridging is enabled (in the property editor), rounding does not work.  Using:

myDiagram.Model.LineBridgingEnabled = false;

Makes the rounded corners work correctly.

Is this a bug or intended behavior?

Thanks very much for your help.


Shyam G [Syncfusion]
Replied On May 21, 2015 05:19 AM UTC

Hi Bob

Thanks for your update.

We are able to reproduce the reported issue at our end and logged a report on this. Also we have created a support incident under your account to track the status of this issue.

Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let me know if you have any questions.

Regards,
Shyam G

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.

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

;