RadTreeView Selected Nodes

2 posts, 0 answers
  1. Matt
    Matt avatar
    24 posts
    Member since:
    Dec 2012

    Posted 15 May 2013 Link to this post

    I have a load on demand RadTreeView displaying perfectly in my project, however only the root node and the root node's child nodes react to being selected; as in RadTreeView.GetSelectedCount returns 0 when a node is selected that is a child of a root node child node, and RadTreeView.SelectedNodes[0] throws an out of range exception in the same scenario.

    Any ideas?

    Thanks,
    Matt
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 16 May 2013 Link to this post

    Hello Matt,

    Since I am not able to reproduce the described issue, I have attached a sample project that follows your instructions. The label tag  purpose is to print the selected node text value when user clicks on the button when a node is already selected. Please note that the selected node is retrieved using the following expression:
    //code behind

    Label1.Text = RadTreeView1.SelectedNodes[0].Text;

    Please try to modify the attached project in order to replicate the described issue. This way we will be able to inspect it locally and assist you any further. 

    Looking forward to your reply.  Kind regards,
    Boyan Dimitrov
    the Telerik team
    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 their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top