Hi Limy,
You could use the following code snippet in the NodeEditorValidateString event to restrict a user from entering characters beyond a limit in a LabelEditing.
private void treeViewAdv1_NodeEditorValidateString(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvCancelableEditEventArgs e)
{
if(e.Label.Length<=5)
e.ContinueEditing=true;
else
e.Cancel=true;
}
Please take a look at the attached sample.
And let me know if this meets your requirement.
Thanks for your patience and interest in Syncfusion products.
Regards,
Deepa.T.S
NodesLabel.zip