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

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

4 Answers 67 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Sylvain Lajoie
Top achievements
Rank 1
Sylvain Lajoie asked on 06 Jul 2012, 12:05 AM
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.

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Jul 2012, 02:59 PM
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.
0
Martha
Top achievements
Rank 1
answered on 10 Sep 2012, 05:38 PM
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 :)
0
Rumen
Telerik team
answered on 11 Sep 2012, 02:46 PM
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.
0
Martha
Top achievements
Rank 1
answered on 11 Sep 2012, 03:22 PM
Yeah I found that documentation & found it to be lacking.
But anyway... I was able to figure it out after searching the forum.
Tags
Spell
Asked by
Sylvain Lajoie
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Martha
Top achievements
Rank 1
Share this question
or