Hi im using RadTreeview. I want to count the number of nodes selected in the treeview.Please tell me how to do this.
But none of the above worked. Please tell me how to do this.
1)
Treeview1.SelectedNodes.Count == 1 (here trreview1 is id of the treeview)
2)
public int CountNodes()
{
int i;
int count = 0;
for (i = 0; i < Treeview1.Nodes.Count; i++)
{
if (Treeview1.Nodes[i].Selected == true)
{
count++;
}
}
return (count);
}
3) Also i have enabled checkboxes in treeview and had done this.
Treeview1.CheckedNodes.Count==0
But none of the above worked. Please tell me how to do this.