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

Telerik MVC Spell check

5 Answers 87 Views
Sample Applications
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Projects Computerra
Top achievements
Rank 1
Projects Computerra asked on 06 Aug 2014, 05:15 AM
I have found some tickets (http://www.telerik.com/forums/using-radspell-on-a-mvc-view-page) on  Telerik MVC Spell check to integrate the Red Spell Check in the asp.net mvc application, I have tried to implement it in my existing system but have no success on this.

can you guys please provide a demo application for the same that help us to achieve this task?

Thanks a lot..

5 Answers, 1 is accepted

Sort by
0
Projects Computerra
Top achievements
Rank 1
answered on 06 Aug 2014, 06:15 AM
I have created the spellchack.ascx file as below:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="spellchacker.ascx.cs" Inherits="spellchack.spellchacker" %>
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %>
 
<script type="text/javascript" lang="javascript">
    function spellCheck() {
        var spell = $('#<%= RadSpellChecker1.ClientID %>');
        if (spell != null) {
            spell.startSpellCheck();
        }
    }
</script>
 
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadSpell ID="RadSpellChecker1" runat="server" ButtonType="None" IsClientID="true" HandlerUrl="~/Telerik.Web.UI.DialogHandler.axd"/>

and used it in my index.cshtml as below:
<textarea id="txtspellcheck"></textarea>
<button onclick="spellCheck()">Check</button>
 
@Html.Partial("~/spellchacker.ascx")

The page returns a Javascript error "Uncaught TypeError: undefined is not a function" on â€‹spell.startSpellCheck();

How to overcome with this?
0
Ianko
Telerik team
answered on 08 Aug 2014, 10:06 AM
Hello,

Using the controls from the Telerik UI for ASP.NET AJAX suite in MVC environment is not supported. You can find more details about this matter in this help article.

Due to that I am unable to firmly provided a possible approach to use the RadSpell in MVC successfully. 

By the provided error message, I can determine the the RadSpell client-side object is not properly found and this is why it appears that the spell variable is undefined. I suggest debugging the clinet-side code and assure that the proper client-side object is used.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
a
Top achievements
Rank 1
answered on 23 Mar 2015, 03:10 PM
is there a spell check available for MVC Kendo UI?
0
Marin Bratanov
Telerik team
answered on 23 Mar 2015, 03:31 PM

Hi,

I am afraid there is no spellcheck component in the Kendo suite. It targets modern browsers and all of them offer one built-in, or have extensions that provide spell checking.

Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Tim
Top achievements
Rank 2
answered on 13 Dec 2017, 06:17 PM
Is it possible to use the MVC Spell Checker with the Kendo UI controls?
Tags
Sample Applications
Asked by
Projects Computerra
Top achievements
Rank 1
Answers by
Projects Computerra
Top achievements
Rank 1
Ianko
Telerik team
a
Top achievements
Rank 1
Marin Bratanov
Telerik team
Tim
Top achievements
Rank 2
Share this question
or