Spell works in IE with MVC, but can't find the RadSpell control in Chrome and FF

5 posts, 0 answers
  1. Sylvain Lajoie
    Sylvain Lajoie avatar
    1 posts
    Member since:
    Jul 2012

    Posted 05 Jul 2012 Link to this post

    Hello,

    I have an MVC 3.0 project which uses a Telerik MVC editor, for which we wanted to add spell checking.  Since MVC doesn't include RadSpell, I followed the instructions on these forums and elsewhere to integrate the Asp.Net AJAX spell check control.

    From my Razor view I render a partial ascx view with the spell check control, and add a custom tool to the editor which calls this control via javascript.  The Javascript function finds the spell check control, sets it's controltocheck property to the appropriate value, and then starts the spell checking.

    This works great in IE8, however in Chrome or Firefox it fails because the command I use to find the control returns null in those browsers (BUT finds the correct control in IE).

    function checkSpelling(id) {
        var spell = $telerik.findSpell('<%= RadSpell1.ClientID %>');
        spell.set_controlToCheck(id+"Iframe");
        spell.startSpellCheck();
    }


    I've attached a small demo project that shows this problem.  I've seen some suggestions that this maybe a timing issue with the function running before the control is initialized, though this seems unlikely, and besides the suggested solutions to that (e.g. Sys.Application.add_load()  don't fix the issue. Please help me resolve this problem.
  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 06 Jul 2012 Link to this post

    Hi,

    The forums do not allow zip attachments. Please, open a support ticket and provided a simple runnable project that we can test to reproduce the problem.

    All the best,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Martha
    Martha avatar
    26 posts
    Member since:
    Aug 2011

    Posted 10 Sep 2012 Link to this post

    Can you point me in the direction of an example of how to integate RadSpell in an MVC Razor app?
    Any Help would be appreciated :)
  5. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 11 Sep 2012 Link to this post

    Hi,

    RadControls for ASP.NET AJAX does not support Razor views, only the ASP.NET rendering engine is supported. Only the ASP.NET rendering engine is supported as described in the following help article: Limitations. You can find integration instructions in the help: Getting Started and Using RadSpell in ASP.NET MVC.

    Greetings,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Martha
    Martha avatar
    26 posts
    Member since:
    Aug 2011

    Posted 11 Sep 2012 Link to this post

    Yeah I found that documentation & found it to be lacking.
    But anyway... I was able to figure it out after searching the forum.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017