Spellcheck not working

2 posts, 0 answers
  1. Jaime Alberto Jaramillo Zapata
    Jaime Alberto Jaramillo Zapata avatar
    10 posts
    Member since:
    Feb 2009

    Posted 05 Feb 2009 Link to this post

    Hi there guys.
    I've been trying to put to work the Rad Editor with a custom dictionary. It works pretty well until I fire the spellcheking function.
    I mean the page loads, but when I try to start the spellcheck process it shows an alert displaying something about not seting the dictionary path.
    I've trying setting the property with the Dictionary tags but still doesn't work.
    Here's the code:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="OnData.Telerik.Samples.Web.Default" %> 
     
    <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
        Namespace="System.Web.UI" TagPrefix="asp" %> 
     
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> 
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <html xmlns="http://www.w3.org/1999/xhtml" > 
    <head runat="server"
        <title>On Data Telerik Samples - Rad Editor</title>     
    </head> 
    <body> 
        <form id="form1" runat="server"
        <div> 
            <h1>Ejemplo Rad Editor: funcionalidades comunes.</h1> 
            <asp:ScriptManager ID="sprmgrManager" runat="server"
            </asp:ScriptManager> 
            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">         
                    <telerik:RadEditor  
                    ID="rdEditor"  
                    runat="server" 
                    EditModes="All" 
                    ToolsFile="~/Toolbars/Tools.xml" 
                > 
                    <Languages> 
                        <telerik:SpellCheckerLanguage Title="Español" Code="es-ES" /> 
                    </Languages>                 
                    <ImageManager MaxUploadFileSize="512000" 
                    UploadPaths="~/Uploads" DeletePaths="~/Uploads" ViewPaths="~/Uploads" EnableImageEditor="true" 
                    /> 
                    <Content></Content
                    </telerik:RadEditor> 
                    <asp:Button runat="server" ID="previsualizar" Text="Previsualizar del Lado del Server" OnClick="previsualizar_Click"/><br /> 
                    <input type="button" id="btnPrevisualizarCliente" onclick="ShowPreview();" value="Previsualizar del lado del Cliente"/> 
                    <div runat="server" id="divPrevisualizar"
                    </div>   
            <input type ="button" id="btnLimpiar" value="Limpiar Div" onclick="CerrarPopDetalle();" /> 
             
            </telerik:RadAjaxPanel> 
            </div> 
            <telerik:RadCodeBlock ID="clientDisplayCode" runat="server" > 
                <script type="text/javascript"
                    function CerrarPopDetalle(){ 
                        var divEntryPreview = document.getElementById('<%=divPrevisualizar.ClientID%>');    
                        divEntryPreview.innerHTML=""
                    } 
     
                    function ShowPreview(){   
                        var rdEditor = $find('<%=rdEditor.ClientID%>'); 
                        var divEntryPreview = document.getElementById('<%=divPrevisualizar.ClientID%>');         
                        divEntryPreview.innerHTML =  rdEditor.get_html();    
                    } 
                </script> 
            </telerik:RadCodeBlock>   
        </form> 
    </body> 
    </html> 
     
    Here's the code behind:
    using System; 
    using System.Data; 
    using System.Configuration; 
    using System.Collections; 
    using System.Web; 
    using System.Web.Security; 
    using System.Web.UI; 
    using System.Web.UI.WebControls; 
    using System.Web.UI.WebControls.WebParts; 
    using System.Web.UI.HtmlControls; 
     
    namespace OnData.Telerik.Samples.Web 
        public partial class Default : System.Web.UI.Page 
        { 
            protected void Page_Load(object sender, EventArgs e) 
            { 
     
            } 
     
            protected void previsualizar_Click(object sender, EventArgs e) 
            { 
                divPrevisualizar.InnerHtml = rdEditor.Content; 
            } 
        } 
     
    The tdf file is in the App_Data/Radspell folder (es-Es.tdf)
  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 09 Feb 2009 Link to this post

    Hi Jaime,

    Please, make sure that you have set full ASPNET / NETWORK SERVICE account permissions to the dictionaries folder and to the es-ES dictionary.

    For your convenience I prepared and attached a sample working project based on your code that works fine on my side. The spellchecker works as expected on my side and corrects the misspelled Spanish words.

    In my test I used the latest Q3 SP2 version of RadControls for ASP.NET AJAX (Telerik.Web.UI.dll 2008.3 1314). Please, test the project and let me know if you still experience the problem.

    Greetings,
    Rumen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top