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

Urgent please

Thread ID:





106668 Jan 21,2013 10:21 AM UTC Jan 25,2013 05:17 AM UTC ASP.NET Web Forms (Classic) 1
Tags: DiagramWebControl
Kamel Gazzah
Asked On January 21, 2013 10:21 AM UTC


I need to let user in running time change the labels of lines and nodes
Please help  me to do that
this is urgent

Amsath Ali M [Syncfusion]
Replied On January 25, 2013 05:17 AM UTC

Hi Kamel,


Thanks for using Syncfusion products.


We have created a simple sample to update the labels of a node in the NodeDoubleClick event of the DiagramWebControl and the same can be downloaded from the below link.


Here is the code:

Syncfusion.Windows.Forms.Diagram.Rectangle rect = new Syncfusion.Windows.Forms.Diagram.Rectangle(100, 100, 100, 70);

                rect.Labels.Add(new Syncfusion.Windows.Forms.Diagram.Label(rect, "Rectangle Node"));



                LineConnector line = new LineConnector(new PointF(100, 250), new PointF(300, 250));

                line.Labels.Add(new Syncfusion.Windows.Forms.Diagram.Label(line, "LineConnector") { OffsetX = 30, OffsetY = 5 });



protected void DiagramWebControl1_NodeDoubleClick(object sender, Syncfusion.Web.UI.WebControls.Diagram.NodeDoubleClickEventArgs e)


            if (e.Node is PathNode)


                PathNode node = e.Node as PathNode;

                node.Labels[0].Text = "Node DoubleClicked";



Here is the sample:



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