Hi John,
You can prevent the doubleclick event for the parent node by checking the level of the node. Please refer this code snippets:
private void treeViewAdv1_DoubleClick(object sender, EventArgs e)
{
TreeNodeAdv node = this.treeViewAdv1.SelectedNode;
//Check the level
if (node.Level >= 2)
{
MessageBox.Show("Pop Up");
}
}
Please refer the sample in the below link which illustrates the above:
http://websamples.syncfusion.com/samples/Tools.Windows/F63928/main.htmThank you for using Syncfusion Products.
Kindly let us know if you need any further assistance.
Best Regards,
Jeba.