New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

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

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.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
<%@ Page CodeFile="DefaultVB.aspx.vb" Language="vb" AutoEventWireup="true" Inherits="Telerik.Web.Examples.Spell.DifferentDictionaries.DefaultVB" %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</head>
<body>
    <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/"
    </qsf:MessageBox>
    <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"
            CustomDictionarySuffix="-John"></telerik:RadSpell>
        with the Default(John's) custom dictionary
                <br />
        <br />
        <telerik:RadSpell RenderMode="Lightweight" ID="spell2" runat="server" ControlToCheck="textBox1" ButtonType="LinkButton"
            CustomDictionarySuffix="-Sally"></telerik:RadSpell>
        with a different custom dictionary
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance