Hi,
According to my understanding you wish to select the TreeNodeAdv in response to a right mouse button click. You could do so by handling the TreeViewAdv'' MouseDown event as shown below :
private void treeViewAdv1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
Point p = this.treeViewAdv1.PointToClient(Control.MousePosition);
TreeNodeAdv node = this.treeViewAdv1.PointToNode(p);
this.treeViewAdv1.SelectedNode = node;
}
}
Please refer to the
sample attached that illustrates this and let me know if this meets your requirements. We appreciate your interest in Syncfusion products.
Regards,
Guru Patwal
Syncfusion, Inc.