Hi Nitroxn,
Thank you for your interest in Syncfusion Products.
We can perform multiple selection in the sub nodes and single selection in the parent nodes in the TreeviewAdv's click event. Kindly refer to the code snippet and the sample given below that illustrates this
private void treeViewAdv1_Click(object sender, EventArgs e)
{
Point controlPoint = this.treeViewAdv1.PointToClient(Control.MousePosition);
TreeNodeAdv node = this.treeViewAdv1.GetNodeAtPoint(controlPoint);
if (node != null)
{
if (node.Level == 3)
{
this.treeViewAdv1.SelectionMode = TreeSelectionMode.MultiSelectSameLevel;
}
else
{
for(int i=0;i {
if (this.treeViewAdv1.SelectedNodes[i].Level == 3)
{
this.treeViewAdv1.SelectedNodes.Clear();
this.treeViewAdv1.SelectedNodes.Add(node);
}
}
this.treeViewAdv1.SelectionMode = TreeSelectionMode.Single;
}
}
}
http://files.syncfusion.com/support/Tools.Windows/7.2.0.20/F82390/main.htmPlease let me know if any concerns.
Regards,
Fathima