Hi Sekaran,
Thank you for your interest in Syncfusion Products
You can validate the text of the label of a node with maximum length by using NodeEditorValidateString event. Please use below code snippet to achieve this:
private void treeViewAdv1_NodeEditorValidateString(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvCancelableEditEventArgs e)
{
//Check for Maximum length
if (e.Label.Length >= 6)
e.Cancel = true;
}
Please refer the sample in the below link which illustrates the above:
http://websamples.syncfusion.com/samples/Tools.Windows/Tools_Windows_TreeviewEdit/main.htmPlease try this and let me know if this helps.
Thanks,
Melba