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

RadEditor Spellcheck

2 Answers 156 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Michael Hurse
Top achievements
Rank 1
Michael Hurse asked on 21 Mar 2010, 02:47 PM
Hi
Sorry - newbie question. I've tried to get my spell check working in my editor but I'm not quite there. When I test I spellchecker symbol but when I click on it I get two entries in the dropdown (both say English). I click on them I get one of three errors:
Spell Check Handler Server Error:12030
Spell Check Handler Server Error:12031
Spell Check Handler Server Error:405

I have got my .tdf file in the right location (en-US.tdf) and I know the application is finding the tdf. I'd  be very grateful if someone could look at my code and tell me what I have done wrong.

In my web.config file I have the following entry in web,config in http handlers in system.web:

<

 

add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />

 

 

 

 

 

<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />

 

 

 

<add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" />

 

 

 

<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />

 

 


In system.webServer I have the following in handlers:
 

<add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

 

 

 

<add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

 

 

 

<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

 

The relevant lines in the aspx file are:

 

(top of page)
<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

 

 

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

 

 

(start of body / form)
  

 

 

<body>

 

 

 

<form id="form1" runat="server">

 

<telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">

 

 

</telerik:RadScriptManager>

 

 

 


radEditor Control
<telerik:RadEditor ID="txtVisitNotes" runat="server" EditModes="Design" Height="300px"

 

Skin="Telerik" Width="99%">

 

 

<Tools>

 

 

<telerik:EditorToolGroup>

 

 

<tools>

 

 

<telerik:EditorTool Name="AjaxSpellCheck" />

 

 

</tools>

 

 

</telerik:EditorToolGroup>

 

 

</Tools>

 

 

<Languages>

 

 

<telerik:SpellCheckerLanguage Code="en-US" Title="English" />

 

 

</Languages>

 

 

<Content>

 

 

</Content>

 

 

</telerik:RadEditor>

 

 

 


The relevent lines in the code behind look like this:

 

protected void Page_Load(object sender, EventArgs e)

 {

txtVisitNotes.Modules.Clear();

lblMessage.Visible =

false;

 

 

 

if (!IsPostBack)

 {

txtVisitNotes.Languages.Add(

new SpellCheckerLanguage("en-US", "English"));

 

 txtVisitNotes.SpellCheckSettings.AjaxUrl =

"True";

 

 

txtVisitNotes.SpellCheckSettings.SpellCheckProvider =

SpellCheckProvider.PhoneticProvider;

 

 

 


thank you kindly

M
 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 24 Mar 2010, 03:34 PM
Hi Michael,

The duplicating "English" in the SpellChecker's dropdown occurs because you are registering a language using the inline tag Languages and after that you are adding the same language in the code behind:
<Languages>
    <telerik:SpellCheckerLanguage Code="en-US" Title="English" />
</Languages>
txtVisitNotes.Languages.Add(new SpellCheckerLanguage("en-US", "English"));

You should skip one of the two declarations above.

Regarding the Spell Check Handler Server Error, AjaxUrl property is used to set the path to the handler and is used in scenarios where you may have a UrlRewriter module which overwrites the handlers url even if they are set in the web.config. A correct value of this property is like follows:
txtVisitNotes.SpellCheckSettings.AjaxUrl = "Telerik.Web.UI.SpellCheckHandler.axd";

I also noticed that you use a very old version of RadSpell 2008.3.1125.20. It is quite possible that this errors are fixed in the latest Q1 2010 build (version version 2010.1.309).

Best regards,
Dobromir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Michael Hurse
Top achievements
Rank 1
answered on 14 Apr 2010, 03:53 PM
Thanks for your tips - they did the trick. Sorry it has taken me awhile to return to the forum. Your help is greatly appreciated.
Tags
Editor
Asked by
Michael Hurse
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Michael Hurse
Top achievements
Rank 1
Share this question
or