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

checking level of node

1 Answer 50 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
beeta one
Top achievements
Rank 1
beeta one asked on 15 Oct 2012, 09:37 AM
How can i check whether the node is the last level child of the radtree view Thanks...

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Oct 2012, 09:49 AM
Hi Hash,

Try the following code snippet to check whether the clicked RadTreeNode is the last level child of RadTreeView.

C#:
protected void RadTreeView1_NodeClick(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e)
{
 if (e.Node.Nodes.Count == 0)
 {
 }
}

Hope this helps.

Regards,
Princy.
Tags
TreeView
Asked by
beeta one
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or