2 posts, 0 answers
  1. Edward
    Edward  avatar
    32 posts
    Member since:
    Jan 2008

    Posted 03 Mar 2008 Link to this post

    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.
  2. Dimitar Kapitanov
    Dimitar Kapitanov avatar
    632 posts

    Posted 04 Mar 2008 Link to this post

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