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

The Editor control does not work properly inside the Silverlight HtmlPlaceHolder on IE7...

1 Answer 55 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 13 Aug 2009, 07:23 PM

I have a silverlight project that uses a Telerik HTMLPlaceHolder control to host a Telerik ASP.NET Ajax Editor.

I am able to successfully bridge between the silverlight to client side javascript.  This makes it possible for me to control the Editor from my Silverlight app and make calls from javascript to my silverlight app.  All this seems to work in IE and Firefox.

But...in IE7 I get a couple of problems that I am hoping you can help me with:
1.  When I launch my silverlight application, if I click inside the AJAX RadEditor control, it seems to steal the focus and I cannot get focus back to the controls on the hosting silverlight application.  This works in IE 8 and Firefox but not in IE7.

2. When I attempt drop down any of the comboboxes in the Rad Editor (for instance the font selector) the dropdown does not appear.  Again, this works fine in IE8 and Firefox.

3. In javascript, when I call: this.editor.fire("ToggleScreenMode");  I get the following error:
Sys.ArgumentOutOfRangeException: Value must be an integer.

 

Parameter name: x

Actual value was NaN

This again, only happens in IE7 and works in IE8 and Firefox.

 

All three of the above problems only happen in IE7 when I host the AJAX RadEditor control inside your HTMLPlaceHolder control. 

Please help !!!

Thanks,
Ed McPadden

P.S. I have a test app that I can send to you that clearly shows the problem.  Let me know if you want me to send it to you.

I also posted this on the Telerik ASP.NET Ajax RadEditor control forum since the problem involves that control as well.

[SOME ADDITIONAL INFO that I just added to this post]...
I just tried setting the RespectSilverlightLayoutMeasure="True" to  the HtmlPlaceHolder control and now in IE7 I get the following result:

  • It still fails on the call to ToggleScreenMode
  • Now it throws the following exception when I dropdown the font selections dropdown:

Line: 2810
Error: Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: x
Actual value was NaN.

It looks like this occurs in the javascript that comes down with the Ajax RadEditor control (i think)

But ... it no longer steals focus.  With this property set to true, I am able to go back and forth between the controls in the silverlight app and the Ajax Rad Editor control ... unless, of course, I try the font or size drop down :(

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 14 Aug 2009, 10:56 AM
Hello Ed,

Did you try using our RadEditor for Silverlight. There those problems are not present:
http://demos.telerik.com/silverlight/#Editor/FirstLook

Regards,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
HTMLPlaceHolder
Asked by
Ed
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or