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

RadTreeView Selected Nodes

1 Answer 314 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 15 May 2013, 07:01 PM
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

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 16 May 2013, 02:18 PM
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.
Tags
TreeView
Asked by
Matt
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or