What property exposes a selected node's ID

2 posts, 0 answers
  1. Marshall Cassidy
    Marshall Cassidy avatar
    6 posts
    Member since:
    May 2010

    Posted 13 Oct 2010 Link to this post

    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!
  2. Marshall Cassidy
    Marshall Cassidy avatar
    6 posts
    Member since:
    May 2010

    Posted 14 Oct 2010 Link to this post

    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";
Back to Top