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

Selecing LineConnector

Thread ID:





60723 May 10,2007 02:52 PM UTC Feb 12,2018 04:06 AM UTC ASP.NET Web Forms (Classic) 3
Tags: DiagramWebControl
Phil Curtis
Asked On May 10, 2007 02:52 PM UTC

I have created a simple diagram based on your InteractDiagram example.
I would like to be able to select a line connector and delete it.
I would also like to be able to change the node to which a line is connected.
Can you tell me how I can do this?

Meera Fathima [Syncfusion]
Replied On May 16, 2007 06:48 AM UTC

Hi Phil Curtis,

Sorry about this delay in responding to your query.

Please refer the ScriptyClient sample which demonstrates how to add/delete nodes, draw links between two nodes that are in the selection list.

Following is the sample code snippet from the ScriptyClient sample for your reference :

// To delete the node.
protected void Remove_Click(object sender, System.EventArgs e)
if (this.DiagramWebControl1.View.SelectionList.Count > 0)
foreach (Node nodeTemp in DiagramWebControl1.View.SelectionList)

// To draw line connector between two nodes.

protected void Link_Click(object sender, System.EventArgs e)
if (this.DiagramWebControl1.View.SelectionList.Count == 2)
Node node1 = (Node)this.DiagramWebControl1.View.SelectionList[0];
Node node2 = (Node)this.DiagramWebControl1.View.SelectionList[1];

node1.EnableCentralPort = true;
node2.EnableCentralPort = true;

LineConnector lConn = new LineConnector(new PointF(1, 1), new PointF(2, 2));

EndPoint endPoint = null;

endPoint = lConn.TailEndPoint;

endPoint = lConn.HeadEndPoint;

I hope the above informations will help you. Please let me know if you have any more queries regarding this. We will be glad to assist you.

Thank you for using Syncfusion products.

Best Regards,

Replied On February 10, 2018 01:12 PM UTC


Naganathan Ganesh Babu [Syncfusion]
Replied On February 12, 2018 04:06 AM UTC

Hi Amir, 
Thanks for the update. 
Please let us know whether the issue has been resolved? 
Naganathan K G 


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

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