check for last level

2 posts, 0 answers
  1. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 08 Oct 2012 Link to this post

    When clicking a node in the OnNodeClick server event how can we check if the node the last level/node
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Oct 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top