Bind TreeView to XElement

2 posts, 0 answers
  1. Pete
    Pete avatar
    1 posts
    Member since:
    Oct 2007

    Posted 19 Jul 2009 Link to this post

    Hi There;

    I'm trying to bind an System.Xml.Linq.XElement to a TreeView. Currently I'm using and XMLDataSource as an intermediary and converting the XElement to a string:

    XmlDataSource1.Data = myXElement.ToString(); 
    RadTreeView1.DataSource = XmlDataSource1; 

    This works but surley there a more direct, cleaner way of doing this without converting the XElement ot a string?

    Can anyone help please?

    Thanks in advance


  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 20 Jul 2009 Link to this post

    Hi Pete,

    Currently RadTreeView does not support binding directly to XElement. Using an XmlDataSource is a viable workaround.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top