select

Editor / AJAX Spell Checker

Rate this demo: Feedback
Run example in: C# VB.NET Change Skin:
Vista
  • BlackBlack
  • DefaultDefault
  • ForestForest
  • HayHay
  • Office2007Office2007
  • OutlookOutlook
  • SimpleSimple
  • SitefinitySitefinity
  • SunsetSunset
  • TelerikTelerik
  • VistaVista
  • Web20Web20
  • WebBlueWebBlue
  • Windows7Windows7
Choose tools file:
   
  
 
 
   

Example Source Code & Description

Instructions
Open in new window
  • Enable RadSpell in RadEditor

    To enable spell checking in your web application you need to accomplish the following 2 tasks:

    1. Copy the needed dictionary files in your project's App_Data folder:
      The files are located in your <RadControls for ASP.NET AJAX installation folder>\App_Data\RadSpell. Create a RadSpell folder in your project's App_Data folder and copy the dictionaries there.
    2. Add the SpellCheck handler in your web.config file. This can be done by using one of the following approaches:
      1. Manually add the handler in your web.config file (in the httpHandlers section):
        <add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
      2. Use the RadEditor's Smart Tag in Visual Studio. Note that the smart tag will appear only if you have the Telerik.Web.Design.dll file in your project's bin folder or in the GAC.
    3. Set the Language property of the RadEditor (by default it is set to "en-US"). If you want to change the language, you can do this by
      1. declaring the property in the RadEditor's declaration:
        <telerik:RadEditor runat="server" ID="RadEditor1">
        <Languages>
        <telerik:SpellCheckerLanguage Code="fr-FR" Title="French" />
        </
        Languages>
        </telerik:RadEditor>
      2. adding the language in the RadEditor's Languages collection. It is recommended to add the language in Page_Load:
        C#:
        protected void Page_Load(object sender, EventArgs e)
        {
        if (!Page.IsPostBack)
        {
        RadEditor1.Languages.Add(
        new SpellCheckerLanguage("fr-FR", "French"));
        }
        }

        VB.NET:
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        If Not Page.IsPostBack Then
        RadEditor1.Languages.Add(New SpellCheckerLanguage("fr-FR", "French"))
        End If
        End Sub
Compatible with ASP.NET 2.0, 3.5 AJAX enabled Accessibility Verified!Valid XHTML 1.1! Optimized for Visual Studio 2005, 2008
Copyright 2002-2010 © Telerik. All right reserved  | 
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451

www.telerik.com  |  Terms of Use  |  Contact Us