Can HtmlPlaceHolder be used easily as an XmlPlaceHolder?

4 posts, 0 answers
  1. Carl
    Carl avatar
    195 posts
    Member since:
    Oct 2012

    Posted 28 Nov 2009 Link to this post

    I'm looking for the simplest and most expedient way to display XML with a selectable XSL stylesheet.

    I'm considering use of the HtmlPlaceHolder, or alternatively, possibly the TreeView if the TreeView can be made to display XML according to an XSL stylesheet. I would like to be able to control the url that provides the XML from a web service and also control the XSL style sheet that is used to display the XML returned from the web service.

    What is the most effective way to implement this functionality using the currently available Telerik controls? Will there be a predefined and customized Telerik control, perhaps to be called "XmlPlaceHolder" that is designed to do just what I've described?

    Thanks.
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 30 Nov 2009 Link to this post

    Hi Carl,

    I'm not sure if I understand your question. Basically you can point the SourceUrl property of the HtmlPlaceholder directly to the XML file and the browser will render it.

    If you want to use the RadTreeView - please check this help article about how to use the treeview with XML:
    http://www.telerik.com/help/silverlight/radtreeview-populating-with-data-data-binding-to-xml.html

    Please let us know.

    Best wishes,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Carl
    Carl avatar
    195 posts
    Member since:
    Oct 2012

    Posted 02 Dec 2009 Link to this post

    Well my thinking was that if there was a customized control called XmlPlaceHolder then it could have at least two properties: one property called XmlSourceUrl for the XML document, and another property called XslStyleUrl for the XSL stylesheet.

    Now the second property XslStyleUrl could be exposed as a dropdownlist or something and the user could conveniently choose to display the XML document according to different selectable stylesheets....

    Of course, this means that the XmlPlaceHolder would have to have the ability to change the XSL stylesheet on the fly and re-display the XML source document according to the newly selected XSL stylesheet....

    So is anything like that possible with the HtmlPlaceHolder? Or alternatively with the RadTreeViewer? 
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 02 Dec 2009 Link to this post

    Hello Carl,

    This is not supported at the moment. We don't have plans to implement it in the short term.

    Best wishes,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top