Telerik MVC Spell check

5 posts, 0 answers
  1. Projects Computerra
    Projects Computerra avatar
    31 posts
    Member since:
    Aug 2009

    Posted 06 Aug 2014 Link to this post

    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..
  2. Projects Computerra
    Projects Computerra avatar
    31 posts
    Member since:
    Aug 2009

    Posted 06 Aug 2014 in reply to Projects Computerra Link to this post

    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?
  3. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 08 Aug 2014 Link to this post

    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.

     
  4. a
    a avatar
    2 posts
    Member since:
    Oct 2014

    Posted 23 Mar 2015 Link to this post

    is there a spell check available for MVC Kendo UI?
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3599 posts

    Posted 23 Mar 2015 Link to this post

    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.

     
Back to Top