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

Spellcheck not working

1 Answer 80 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jaime Alberto Jaramillo Zapata
Top achievements
Rank 2
Jaime Alberto Jaramillo Zapata asked on 05 Feb 2009, 03:13 PM
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)

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Feb 2009, 09:10 AM
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.
Tags
Editor
Asked by
Jaime Alberto Jaramillo Zapata
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or