BoldDeskPremium customer service software with affordable pricing: $10 for 3 agents. Try it for free.
Hi Shyam,
Thanks for your interest in Syncfusion products.
As you
have posted the same query “how to disable Diagram control Label Edit?”
in your another Direct-Trac incident #100130, please refer that incident for
further follow up.
Please let us know if you have any queries.
Regards,
Amsath Ali. M
Hi Alex,
Thanks for using Syncfusion products.
We suggest you to use the diagram.Controller’s ‘InPlaceEditing’
property to ‘false’ and set the Node.EditStyle’s ‘DefaultHandleEditMode’
to ‘None’ in order to disable the
In-place editing of label and selection handler of node respectively. Please refer
the below code snippet to achieve your requirement.
Here is the code:
[C#]
//sets a value
indicating that in place editing is disabled.
diagram1.Controller.InPlaceEditing
= false;
Ellipse
ellp = new Ellipse(100,
100, 100, 70);
//sets
the default mode for editing the object using selection handles.
ellp.EditStyle.DefaultHandleEditMode = HandleEditMode.None;
diagram1.Model.AppendChild(ellp);
Please refer the below attached sample and let us know if
you have any queries.
Regards,
Amsath Ali. M
Hi Alex,
Thanks for your update.
We are happy to hear that the issue has been resolved.
Please let us know if you require any further assistance on this. We would be
happy to help you out.
Regards,
Amsath
Hi Masako,
Thanks for using Syncfusion products.
Your requirement “Need to disable label editor for certain
nodes” can be achieved by setting the Label’s ‘ReadOnly’ property to ‘true’ for
the nodes you want to disable the label editor. Please refer the below code
snippet.
Here is the code:
[C#]
Syncfusion.Windows.Forms.Diagram.Rectangle rect1 = new
Syncfusion.Windows.Forms.Diagram.Rectangle(400,
100, 100, 70);
Syncfusion.Windows.Forms.Diagram.Label
lbl = new Syncfusion.Windows.Forms.Diagram.Label(rect1, "Rectangle2");
//Indicates that the label is not editable
lbl.ReadOnly = true;
rect1.Labels.Add(lbl);
diagram1.Model.AppendChild(rect1);
Please try the below attached sample and let us know if you
any queries.
Regards,
Amsath Ali. M