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
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.