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

Client-side API

Spellchecking on client-side events.


Click this text to start the spellchecker.

This example demonstrates how you could launch RadSpell spellchecking on client-side events by calling the provided JavaScript function.

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

<%@ 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" />
    <div class="demo-container size-narrow">
        Spellchecking on client-side events.<br />
        <textarea id="textarea1" style="width:100%; height:100px">Thisz is a client side TEXTAREA with some delibirate mistakees.</textarea>
        <br />
        <telerik:RadSpell RenderMode="Lightweight" ID="spell1" runat="server" ControlToCheck="textarea1" IsClientID="true"
            ButtonType="None"></telerik:RadSpell>
        <br />
        <span onclick="$find('<%= spell1.ClientID %>').startSpellCheck()" style="color: red;
            cursor: hand; cursor: pointer;">Click this text to start the spellchecker.</span>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance