Triggering Spellchecker on Page_Load


How to trigger the spellchecker on Page_Load.


You can trigger the spellcheck on Page_Load, but you have to use a client-side approach:

1) Set the spellcheck ButtonType property to "None"

2) Set the body OnLoad event like this:

<body onload="setTimeout(function() { $find('<%= RadSpell1.ClientID %>').startSpellCheck(); }, 100);">  
   <form id="form2" runat="server">
       <asp:ScriptManager ID="ScriptManager1" runat="server">
       <asp:TextBox ID="TextBox1" runat="server" Text="baad speeleng"></asp:TextBox>
       <telerik:RadSpell RenderMode="Lightweight" ID="RadSpell1" runat="server" ControlToCheck="TextBox1" ButtonType="None"/>
In this article
Not finding the help you need? Improve this article