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

What property exposes a selected node's ID

1 Answer 38 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Marshall Cassidy
Top achievements
Rank 1
Marshall Cassidy asked on 13 Oct 2010, 09:20 PM
When a user clicks on a node of my radtreeview, I need to know what that node's ID is so I can rebind my radgrid based on that node. I can't seem to figure out which property contains that information though.

Help!

1 Answer, 1 is accepted

Sort by
0
Marshall Cassidy
Top achievements
Rank 1
answered on 14 Oct 2010, 02:58 PM
Nevermind, I figured it out. Its:

RadTreeView1.SelectedNode.Value;

That value was blank for me so I didn't realize it was the correct one. I had to add the following line to the binding method to populate the value in the first place.

RadTreeView1.DataValueField = "ID";
Tags
TreeView
Asked by
Marshall Cassidy
Top achievements
Rank 1
Answers by
Marshall Cassidy
Top achievements
Rank 1
Share this question
or