This is a migrated thread and some comments may be shown as answers.

check for last level

1 Answer 35 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 08 Oct 2012, 09:53 AM
When clicking a node in the OnNodeClick server event how can we check if the node the last level/node

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Oct 2012, 10:04 AM
Hi,

Try the following code to achieve your scenario.
C#:
protected void RadTreeView2_NodeClick(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e)
{
 if (e.Node.Nodes.Count == 0)
 {
 }
}

Thanks,
Princy.
Tags
TreeView
Asked by
Tina
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or