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

i am a new user rad control i need the help in Spell checking text box values

7 Answers 107 Views
Spell
This is a migrated thread and some comments may be shown as answers.
basbas
Top achievements
Rank 1
basbas asked on 10 Oct 2009, 07:35 AM
can any one help me pls
i am a new user rad control
I create  the code :

<!

 

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>Untitled Page</title>

 

</

 

head>

 

<

 

body>

 

<

 

script type="text/javascript">

 

function

 

SpellCheckDone() {

 

var

 

textbox = $find("<%= RadTextBox1.ClientID %>");

 

textbox.updateDisplayValue();

 

}

</

 

script>

 

 

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

 

 

<div>

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

 

 

</telerik:RadScriptManager>

 

 

<telerik:RadTextBox ID="RadTextBox1" runat="server" Columns="50" Rows="10" Skin="Web20"

 

 

TextMode="MultiLine" Text="RadSpell enablez developerz to add multilngual spellchecking capabilties to their ASP.NET applications">

 

 

</telerik:RadTextBox>

 

 

<telerik:RadSpell ID="RadSpell1" runat="server" ControlToCheck="RadTextBox1" DictionaryPath="~/App_Data/"

 

 

SupportedLanguages="en-US,English" OnClientDialogClosed="SpellCheckDone" Skin="WebBlue" WordIgnoreOptions="WordsWithNumbers" />

 

 

&nbsp;

 

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

but when i click botton RadTextBox1 the form com empty i can't  make spell i use the book RadControlsAJAXCourseware.pdf
and i took the examp every thing (properties - App_GlobalResources - App_Data -"en-US.tdf)

i use asp.nae vb lang
if any one can make examp an compress to use

thanks for all

 

7 Answers, 1 is accepted

Sort by
0
basbas
Top achievements
Rank 1
answered on 11 Oct 2009, 07:12 AM
no help
0
basbas
Top achievements
Rank 1
answered on 11 Oct 2009, 07:19 AM
now the screen for spell showing but it showing and give this massige Spell Checking in progress....
pls what i can do to

give me the word in radtextbox1

pls

thanks
0
basbas
Top achievements
Rank 1
answered on 11 Oct 2009, 01:07 PM
i use asp.net v2
ifound only for v3.5
0
Lini
Telerik team
answered on 12 Oct 2009, 06:27 AM
Hi,

Where is your en-US.tdf file? if it is in "~/App_Data/RadSpell/en-US.tdf", then you do not need to set the DictionaryPath property of the RadSpell control. Also make sure that you have registered the spellcheck handler in addition to the dialog handler (use the control smart tag in the Visual Studio designer).

Kind regards,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
basbas
Top achievements
Rank 1
answered on 13 Oct 2009, 06:55 AM
I  make sure that you have registered the spellcheck handler in addition to the dialog handler (use the control smart tag in the Visual Studio designer).

becuse I use RadControlsAJAXCourseware.pdf in the book have steps to do

Spell checking text box values

Another useful control to use with RadTextBox is RadSpell. This control lets you easily enable spell checking so

that the user can check the text after it is entered into the text box.

 

The following walk-through guides you through the process of linking up a spell checker with a multi-line text

box. The code for this example can be found in \VS Projects\Input\HowToSpellCheck.

1. Create a new ASP.NET Web Application and add a ScriptManager onto the page from the AJAX extensions

section of the tool box.

2. Locate the English dictionary that the spell checker uses. This file is called "en-US.tdf", and can be found in

the App_Data\RadSpell folder inside the folder where you installed RadControls for ASPNET AJAX. Copy this

file and paste it into the App_Data folder of your project (using the Project Explorer).

3. Right-click on your project in the Project Explorer and choose Add|Add ASP.NET

Folder|App_GlobalResources from the context menu.

4. Locate the spell dialog resource, "RadSpell.Dialog.resx", in the App_GlobalResources folder inside the

folder where you installed RadControls for ASPNET AJAX. Copy this file and paste it into the

App_GlobalResources folder that you added in the last step. Your Project Explorer should now look

something like the following: 

 

5. Add a

 

 

RadTextBox control to your Web page. Set its Skin property to "WebBlue", TextMode to "MultiLine",

 

 

 

 

 

 

Rows

 

 

 

 

to 10 and Columns to 50.

 

6. Add a

 

 

RadSpell control to your Web page below the RadTextBox.

 

7. In the Smart Tag that appears automatically, click the

 

 

Enable RadSpell Http Handlers link.

 

On the

 

RadSpell control, set the ControlToCheck property to "RadTextBox1" and the DictionaryPath

 

 

 

 

 

 

 

property to "App_Data".

9. On the Source page of the designer, add the following script block to the <body> section of your Web page:

 

 

 

 

[ASP.NET] Script block with event handler

 

 

 

 

 

 

<

 

 

 

script type="text/javascript">

 

 

 

 

 

 

function SpellCheckDone() {

var textbox = $find("

 

 

<%= RadTextBox1.ClientID %>");

 

textbox.updateDisplayValue();

}
</script>

 

10. Set the

 

OnClientDialogClosed property of the RadSpell control to "SpellCheckDone". This assigns the event

 

handler you added in the last step to the OnClientDialogClosed client-side event. When the user exits the

spell check dialog, the value of the text box is updated, but the call to the

 

 

updateDispalyValue() method

 

is required so that the new value will be displayed on the Web page.

11. Press Ctl-F5 to run the application. You can enter a lengthy value in the text box (with some spelling errors

in it). Click the "Spell Check" button to invoke the spell checker. When you exit the dialog, any corrections

you made in the dialog are reflected in the text box.

 

 

 

 

 

 

 

 

what i need :
after this steps the screen for spell its Appear on the screen but in the textbox1 not have  the word  what i need to speel not  Appear 
but come this message"Spell Checking in progress...." and when i made deep serch i found the message in the folder App_GlobalResources ==>> RadSpell.Dialog.resx when you click duble click on the file

Thank you for your interest in the subject and Thanks for the reply

 
0
Lini
Telerik team
answered on 16 Oct 2009, 11:54 AM
Hi,

You can try using Fiddler for IE or Firebug's Net panel for Firefox and see what is happening with the Telerik.Web.UI.SpellCheckHandler.axd request that the RadSpell control makes when the "Spell Checking in progress...." message appears. If the message is not removed, this usually means problems with the server code that does the spellchecking. The response to the Telerik.Web.UI.SpellCheckHandler.axd should contain the server error.

Regards,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
E
Top achievements
Rank 1
answered on 30 Jul 2010, 08:13 PM
For anyone stumbling on this I have one solution.  Make sure that the folder RadSpell (and the 3 .tdf files inside) exists inside the projects App_Data folder.  You can find this file in the telerik install folder under the LiveDemo App_Data folder
Tags
Spell
Asked by
basbas
Top achievements
Rank 1
Answers by
basbas
Top achievements
Rank 1
Lini
Telerik team
E
Top achievements
Rank 1
Share this question
or