HTMLplaceholder not rendering html properly when using source code of yahoo and google as htmlsource.

2 posts, 0 answers
  1. Amit
    Amit avatar
    5 posts
    Member since:
    Oct 2011

    Posted 21 Oct 2011 Link to this post

    Hi,

    I am using radhtmlplaceholder in silverlight application.
    When I copy source from yahoo or google and assign this string as htmlsource for placeholder its not rendering correctly.



    Regards,
    Amit Nadhe
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 21 Oct 2011 Link to this post

    Hi Amit,

    When you set the RadHtmlPlaceholder.HtmlSource property the control creates a div element and adds it in the web page which is hosting the Silverlight plug-in. Then the value of the HtmlSource property is set as the div's innerHtml through a JavaScript method.

    However, you need to keep in mind that in some browsers, like IE, if the HtmlSource value contains css styles declared inline, they won't be applied. Unfortunately we have no control over how this content is rendered in the browsers.

    Is this the issue in your case? If not, can you please send us a sample code snippet illustrating how you define the RadHtmlPlaceholder and its properties? Then we will be able to further investigate the issue and help you overcome it.

    Best wishes,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top