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

Checking Multiple Controls

Spellchecking three text areas with a single dialog.

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.

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

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns=''>
<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>

Support & Learning Resources

Find Assistance