Spell - Different Custom Dictionaries

Make sure the ASP.NET user account has write permissions for en-US-Sally.txt and en-US-John.txt in "~/App_Data/RadSpell/"

with the Default(John's) custom dictionary

with a different custom dictionary
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

In the sample above we have attached two RadSpell controls to a single TextBox, each configured to use a different dictionary path. This technique is convenient if you want to provide different dictionaries and custom dictionaries to your users.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
<%@ Page CodeFile="DefaultCS.aspx.cs" Language="C#" AutoEventWireup="true" Inherits="Telerik.Web.Examples.Spell.DifferentDictionaries.DefaultCS" %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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">
    <title>Telerik ASP.NET Example</title>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <qsf:MessageBox ID="InformationBox1" runat="server" Type="Info" Icon="Info">
        Make sure the ASP.NET user account has write permissions for en-US-Sally.txt
                and en-US-John.txt in "~/App_Data/RadSpell/"
    <div class="demo-container size-narrow">
        <asp:TextBox ID="textBox1" runat="server" width="100%" Height="100px" TextMode="MultiLine">Thisz is a server side TextBox with some delibirate mistakees.</asp:TextBox>
        <br />
        <br />
        <telerik:RadSpell RenderMode="Lightweight" ID="spell1" runat="server" ControlToCheck="textBox1" ButtonType="LinkButton"
        with the Default(John's) custom dictionary
                <br />
        <br />
        <telerik:RadSpell RenderMode="Lightweight" ID="spell2" runat="server" ControlToCheck="textBox1" ButtonType="LinkButton"
        with a different custom dictionary

Find Assistance

Help Us Improve

Was this example helpful?