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

SelectedValue?

1 Answer 74 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 03 Mar 2008, 06:56 PM
I bind the tree to a DataTable.  Is there an equivalent of SelectedIndex / SelectedValue / SelectedItem in the TreeView?  I found SelectedNode but it doesn't seems to have any property that give me the underlying DataRow represented by the node.

1 Answer, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 04 Mar 2008, 03:33 PM
Hello Edward,

Our goal has always been to provide an API that is very close to that of the common .NET UI controls, thus ensuring our customers will have a flat learning curve wherever possible. In the treeview control supplied with the .NET Framework (please have in mind it does not support databinding out of the box), the nodes have a general purpose property called Tag which gets/sets an object. It is used to associate objects with tree nodes. In our RadTreeView we use the same property to associate objects with nodes. In the databinding case you will need to preload the underlying databound item there.

Let me know if you need additional assistance.

 
Best wishes,
Dimitar Kapitanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Treeview
Asked by
Edward
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
Share this question
or