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

8 posts, 0 answers
  1. basbas
    basbas avatar
    5 posts
    Member since:
    Jun 2009

    Posted 10 Oct 2009 Link to this post

    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

     

  2. basbas
    basbas avatar
    5 posts
    Member since:
    Jun 2009

    Posted 11 Oct 2009 Link to this post

    no help
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. basbas
    basbas avatar
    5 posts
    Member since:
    Jun 2009

    Posted 11 Oct 2009 Link to this post

    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
  5. basbas
    basbas avatar
    5 posts
    Member since:
    Jun 2009

    Posted 11 Oct 2009 Link to this post

    i use asp.net v2
    ifound only for v3.5
  6. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 12 Oct 2009 Link to this post

    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.
  7. basbas
    basbas avatar
    5 posts
    Member since:
    Jun 2009

    Posted 13 Oct 2009 Link to this post

    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
  8. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 16 Oct 2009 Link to this post

    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.
  9. E
    E avatar
    1 posts
    Member since:
    Jul 2010

    Posted 30 Jul 2010 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017