HTML Place Holder not Work With Me

4 posts, 0 answers
  1. Ahmed
    Ahmed avatar
    55 posts
    Member since:
    Oct 2012

    Posted 21 Dec 2010 Link to this post

    When I add The HTML Place Holder to My SilvelrightPage I got an Error at run Time
    It Appear in

    InitializeComponent();


    The Error is XamlParseException Occured
    The invocation of the constructor on type 'Telerik.Windows.Controls.RadHtmlPlaceholder' that matches the specified binding constraints threw an exception.


    -------
    {System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'Telerik.Windows.Controls.RadHtmlPlaceholder' that matches the specified binding constraints threw an exception. [Line: 11 Position: 47] ---> System.InvalidOperationException: RadHtmlPlaceholder requires the "Windowless" parameter of the Silverlight application to be True.
       at Telerik.Windows.Controls.RadHtmlPlaceholder.Init()
       at Telerik.Windows.Controls.RadHtmlPlaceholder..ctor()
       --- End of inner exception stack trace ---
       at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
       at _326364_HtmlPlaceholderExample.MainPage.InitializeComponent()
       at _326364_HtmlPlaceholderExample.MainPage..ctor()}

    --
    {System.InvalidOperationException: RadHtmlPlaceholder requires the "Windowless" parameter of the Silverlight application to be True.
       at Telerik.Windows.Controls.RadHtmlPlaceholder.Init()
       at Telerik.Windows.Controls.RadHtmlPlaceholder..ctor()}
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 22 Dec 2010 Link to this post

    Hi Ahmed,

    When using the RadHtmlPlaceHolder it is important to note that the Silverlight plug-in that hosts the control has to be Windowless enabled. You can find more info here. Let us know if this info helps or if you need further assistance.

    Best wishes,
    Tina Stancheva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. jdpapiero
    jdpapiero avatar
    2 posts
    Member since:
    Sep 2012

    Posted 21 Jan 2013 Link to this post

    I have a Big Problem, I need use the RadHtmlPlaceholder but I can't  use the parameter windowless = true, because when I use the parameter Windowless = true, in my application the text with accent is not support in Firefox and Chrome.

    I need help me please, I'm in a crossroads..., 
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 24 Jan 2013 Link to this post

    Hi Jesus,

    Unfortunately the RadHtmlPlaceholder can't work without the windowless setting. And as I am not sure how you've set up your application and what scenario requirements it implements, I don't know if you will be able to workaround this.

    However, you can try dynamically setting the windowless parameter to true only when the RadHtmlPlaceholder should be displayed and setting it back to false when the control is not in view. You can take a look at our demo solution demonstrating how to reload a page and set the Silverlight plug-in windowless parameter to true. Perhaps you will be able to implement such an approach in your solution as well.

    Other alternatives, you can consider, are using the Silverlight WebBrowser control or the RadRichTextBox control, depending on what kind of content you display in the RadHtmlPlaceholder. The RadRichTextBox control can render html content, while the WebBrowser control allows to display external pages in Silverlight 5 in-browser trusted applications.

    Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top