Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

Spell / First Look

Sample textboxes
Text 1
 
Text 2
 
Text 3
 
Set RadSpell's Properties:
Controls to check:

Button type:


SpellCheck Type

* EditDistance="1" by default

Supported Languages:

Fragment Ignore Options:

  • RadSpell

    RadSpell enables developers to add multilingual spellchecking capabilities to their ASP.NET applications. The component is completely customizable and can be attached to any server/client editable element (textbox, div, iframe). It currently supports 20 languages with custom dictionaries for every language.

    RadSpell can use three spellcheck algorithms to provide the most adequate spelling suggestions for your language. The algorithms are selected by setting the SpellCheckProvider property to one of the following values:

    • PhoneticProvider, TelerikProvider: This provider uses phonetic codes to provide "sounds like" word suggestions. Really effective for English, but less so for other languages. The TelerikProvider is the default value of the SpellCheckProvider property and is equivalent to PhoneticProvider.

    • EditDistanceProvider: This provider uses the edit distance algorithm. EditDistanceProvider work best for non-western languages. The EditDistanceProvider has a specific setting, called EditDistance, which controls the count of the suggested words and affects the performance of the spellcheck algorithm.

    • MicrosoftWordProvider: This provider automates Microsoft Word via its COM Interop interface. You need to have installed Microsoft Word on your server in order to use this provider. For more information on how to enable the MS Word spell checking see this article: Enabling MS Word Spell Checking.

    Key Features

    • No-postback algorithm for superior performance
    • Options: check all caps, check words with numbers, etc.
    • Custom dictionary for every language
    • Support for subject-specific dictionaries (i.e. medical)
    • Optional phonetic algorithm
    • Ignoring inline scripts and style definitions
    • Ignoring text fragments
    • Ability to check multiple controls at once

    Note: The ImageButton value of the ButtonType property renders a link with assigned .rscLinkImg class that can be used to modify the look of the rendered control.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.Spell.WhatsNew.DefaultCS"
        Language="c#" AutoEventWireup="true" %>

    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <qsf:HeadTag runat="server" ID="Headtag1"></qsf:HeadTag>
        <style type="text/css">
            .smallModule textarea
            {
                width: 470px;
            }
            .title
            {
                color: black;
            }
            .rscLinkImg
            {
                background-image: url(SpellCheck.gif);
                background-repeat: no-repeat;
                text-indent: -9999px;
                width: 20px;
                height: 20px;
                display: block;
                border: 1px solid #404040;
                background-color: #ebebeb;
                outline: none;
            }
        </style>
    </head>
    <body class="BODY">
        <form runat="server" id="mainForm" method="post">
        <qsf:Header ID="Header1" runat="server" NavigationLanguage="CS"></qsf:Header>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadFormDecorator Visible="true" ID="RadFormDecorator1" runat="server" DecoratedControls="All" />
        <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel" Transparency="50" />
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel">
            <div style="width: 460px; float: left;">
                <fieldset>
                    <legend>Sample textboxes</legend>
                    <asp:Panel runat="server" Style="margin: 5px">
                        <div>
                            Text 1</div>
    <asp:TextBox ID="TextBox1" Style="height: 100px; width: 410px" runat="server" Rows="5"
    Columns="50" TextMode="MultiLine">RadSpell enablez developerz to add multilngual spellchecking capabilties to their ASP.NET applications.</asp:TextBox>

                        <div>
                            &nbsp;</div>
                        <div>
                            Text 2</div>
    <asp:TextBox ID="TextBox2" Style="height: 100px; width: 410px" runat="server" Rows="5"
    Columns="50" TextMode="MultiLine">The componen is completely customisable and can be attached to any server/client editable elemen (textbox, div, iframe).</asp:TextBox>

                        <div>
                            &nbsp;</div>
                        <div>
                            Text 3</div>
                        <textarea id="TextArea1" style="height: 100px; width: 410px" runat="server" rows="5"
                            cols="50">It currently supportz 20 languages with custom dictionaries for evry language.</textarea>
                        <div>
                            &nbsp;</div>
                    </asp:Panel>
                    <telerik:RadSpell ID="RadSpell1" runat="server" />
                </fieldset>
            </div>
            <div style="width: 210px; margin-left: 10px; float: left;">
                <qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1" Enabled="true" Title="Set RadSpell's Properties:"
                    Expanded="true" Style="text-align: left;" HorizontalAlign="Right" Width="210">
                    <div class="title">
                        Controls to check:</div>
    <asp:CheckBoxList CellPadding="0" CellSpacing="0" Width="80px" ID="ControlsToCheckList"
    runat="server" AutoPostBack="True" OnSelectedIndexChanged="ControlsToCheckList_SelectedIndexChanged">

                        <asp:ListItem Text="Text 1" Value="TextBox1" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="Text 2" Value="TextBox2" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="Text 3" Value="TextArea1" Selected="True"></asp:ListItem>
                    </asp:CheckBoxList>
                    <br />
                    <div class="title">
                        Button type:</div>
                    <asp:DropDownList ID="ButtonTypeList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ButtonTypeList_SelectedIndexChanged">
                        <asp:ListItem Text="Push Button" Selected="true" Value="PushButton"></asp:ListItem>
                        <asp:ListItem Text="Link Button" Value="LinkButton"></asp:ListItem>
                        <asp:ListItem Text="Image Button" Value="ImageButton"></asp:ListItem>
                        <asp:ListItem Text="None (Requires using client code)" Value="None" Enabled="false"></asp:ListItem>
                    </asp:DropDownList>
                    <br />
                    <br />
                    <div class="title">
                        SpellCheck Type</div>
                    <asp:DropDownList ID="SpellCheckTypeList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="SpellCheckTypeList_SelectedIndexChanged">
                        <asp:ListItem Text="PhoneticProvider" Selected="true" Value="PhoneticProvider"></asp:ListItem>
                        <asp:ListItem Text="EditDistanceProvider*" Value="EditDistanceProvider"></asp:ListItem>
                    </asp:DropDownList>
                    <br />
                    <span style="font-size: 12px; color: #626262">* EditDistance="1" by default</span><br />
                    <br />
                    <div class="title">
                        Supported Languages:</div>
    <asp:CheckBoxList CellPadding="0" Width="100px" CellSpacing="0" ID="LanguageList"
    runat="server" AutoPostBack="True" OnSelectedIndexChanged="LanguageList_SelectedIndexChanged">

                        <asp:ListItem Text="English" Value="en-us" Selected="true"></asp:ListItem>
                        <asp:ListItem Text="French" Value="fr-fr"></asp:ListItem>
                        <asp:ListItem Text="German" Value="de-de"></asp:ListItem>
                    </asp:CheckBoxList>
                    <br />
                    <div class="title">
                        Fragment Ignore Options:</div>
    <asp:CheckBoxList CellPadding="0" Width="140px" CellSpacing="0" ID="FragmentsList"
    runat="server" AutoPostBack="True" OnSelectedIndexChanged="FragmentsList_SelectedIndexChanged">

                        <asp:ListItem Text="Email Addresses" Value="EmailAddresses" Selected="true"></asp:ListItem>
                        <asp:ListItem Text="File Names" Value="FileNames" Selected="true"></asp:ListItem>
                        <asp:ListItem Text="Urls" Value="Urls" Selected="true"></asp:ListItem>
                    </asp:CheckBoxList>
                </qsf:ConfiguratorPanel>
            </div>
        </telerik:RadAjaxPanel>
        <qsf:Footer ID="Footer1" runat="server"></qsf:Footer>
        </form>
    </body>
    </html>

Get more than expected!

 
 

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451