Load Dynamic XML

4 posts, 0 answers
  1. Paul Ashton
    Paul Ashton avatar
    6 posts
    Member since:
    Oct 2009

    Posted 10 May 2010 Link to this post

    I need to dynamically load the contents of an xml file.
    The xml will be free format and so can change.
    I s it possible to load this into a TreeListView?
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 11 May 2010 Link to this post

    Hello Paul Ashton,

    The TreeList (and Silverlight controls in general) will not bind as easily to XML or dynamic (as in DLR) objects.

    You may be able to use ValueConverters in the DataBindings in the CellTemplates of the TreeList that will extract the value from the XML in a way you expect.

    Can you describe your scenario in a little more detail? Then possibly we can think of a more specific suggestion that will work for you.

    Greetings,
    Miroslav
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Paul Ashton
    Paul Ashton avatar
    6 posts
    Member since:
    Oct 2009

    Posted 11 May 2010 Link to this post

    The issue is that i dont know the structure of the xml, but i would like to be able to display it's structure
  5. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 13 May 2010 Link to this post

    Hi Paul Ashton,

    The Xml APIs available in Silverlight are not directly bindable.

    You need to create a bindable wrapper around them. The XDocument can be used as a basis.

    You can have a look at the attached project, hopefully it will help you get started.

    All the best,
    Miroslav
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top