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