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.

Urgent please

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hello

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 12:17 AM

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"));

                DiagramWebControl1.Model.AppendChild(rect);

 

                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 });

                DiagramWebControl1.Model.AppendChild(line);

 

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:

http://www.syncfusion.com/downloads/Support/DirectTrac/102644/F106668704196531.zip

 

Please let us know if you have any queries.

 

Regards,

Amsath Ali. M


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.

;