Node level of the entries

2 posts, 0 answers
  1. Iulian Ilies
    Iulian Ilies avatar
    8 posts
    Member since:
    Apr 2010

    Posted 11 Jul 2013 Link to this post

    Hi there,
    Is there a way to find out what is the level of a particular entry or if there are no child entries for it.
    My current understanding of the control is that the selection is preserved in the Entries collection and there is no tree-like connections between the items of this collection.
    My goal is to extract only the selected leaves.
  2. Kate
    Kate avatar
    1898 posts

    Posted 16 Jul 2013 Link to this post

    Hi Iulian,

    By using the NodeDataBound event you can easily get reference to the level of the nodes in the following way:
    var nodeLevel= e.DropDownTreeNode.Level;

    Indeed, currently there is no way to get reference to the tree in the dropdown but with the upcoming Service Pack1 this week, we will introduce both client-side and server-side properties and methods that will allow access to the tree.  

    I would also recommend that you take a look at this help article as I believe it would be helpful in your scenario - How to Pre-Select a Node Based on Text or Value.

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top