This is a migrated thread and some comments may be shown as answers.

Can HtmlPlaceHolder be used easily as an XmlPlaceHolder?

3 Answers 46 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 28 Nov 2009, 06:20 PM
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.

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 30 Nov 2009, 01:27 PM
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.
0
Carl
Top achievements
Rank 1
answered on 02 Dec 2009, 04:35 PM
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? 
0
Valentin.Stoychev
Telerik team
answered on 02 Dec 2009, 04:46 PM
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.
Tags
HTMLPlaceHolder
Asked by
Carl
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Carl
Top achievements
Rank 1
Share this question
or