Hi Jzucker,
Please refer to the sample attached with this, that shows how you could accomplish the above by handling the TreeViewAdv''s NodeEditorValidating eventas shown below :
private void treeViewAdv1_NodeEditorValidating_1(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvCancelableEditEventArgs e)
{
if(e.Label=="Syncfusion")
{
e.Cancel = false;
MessageBox.Show("Unique");
e.ContinueEditing = false;
}
else
{
// Cancel the label edit action, inform the user, and place the node in edit mode again. //
e.Cancel = true;
MessageBox.Show("Name is not unique");
// To end editing mode, do this:
e.ContinueEditing = true;
}
}
Let me know if this meets your requirements.
Thanks for your continued interest in Syncfusion products.
Regards,
Deepa.T.S
test13.zip