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

2 posts, 0 answers
  1. Ed
    Ed avatar
    7 posts
    Member since:
    Dec 2008

    Posted 13 Aug 2009 Link to this post

    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. 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:"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 !!!

    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 :(

  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 14 Aug 2009 Link to this post

    Hello Ed,

    Did you try using our RadEditor for Silverlight. There those problems are not present:

    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.
Back to Top