Spell - Checking Multiple Controls

Spellchecking three text areas with a single dialog.

Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

The RadSpell property ControlsToCheck allows you to spell check multiple HTML controls on the same page with a single instance of RadSpell. In the past this was only possible with custom JavaScript code. This example shows how to check three textbox controls using the ControlsToCheck property.

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

<%@ 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" />
    <div class="demo-container size-narrow">
        <strong>Spellchecking three text areas with a single dialog.</strong><br />
        <textarea id="textarea1" style="width:100%; height:100px">My firzt client side TEXTAREA with some delibirate mistakees.</textarea>
        <br />
        <textarea id="textarea2" style="width:100%; height:100px">My secont client side TEXTAREA with some delibirate mistakees.</textarea>
        <br />
        <textarea id="textarea3" style="width:100%; height:100px">My thirdth client side TEXTAREA with some delibirate mistakees.</textarea>
        <br />
        <telerik:RadSpell RenderMode="Lightweight" ID="spell1" runat="server" ControlsToCheck="textarea1,textarea2,textarea3"
            IsClientID="true" ButtonText="Check all"></telerik:RadSpell>

Find Assistance

Help Us Improve

Was this example helpful?