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

HTML Place Holder not Work With Me

3 Answers 120 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Ahmed
Top achievements
Rank 1
Ahmed asked on 21 Dec 2010, 08:52 PM
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()}

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 22 Dec 2010, 04:35 PM
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
0
jdpapiero
Top achievements
Rank 1
answered on 21 Jan 2013, 03:09 PM
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..., 
0
Tina Stancheva
Telerik team
answered on 24 Jan 2013, 09:41 AM
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.

Tags
HTMLPlaceHolder
Asked by
Ahmed
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
jdpapiero
Top achievements
Rank 1
Share this question
or