Edit this page

OnClientCheckFinished

The OnClientCheckFinished client-side event occurs after the spell check is complete. The event handler receives parameters:

  1. sender—the RadSpell that fired the event.

  2. Event arguments—an event arguments object of type SpellClientCheckFinishedEventArgs that exposes the following properties and methods:

Name Parameters Return Type Description
suppressCompleteMessage boolean Passtrueto prevent the alert that indicates that the spell check has finished.

The example below cancels the built-in complete message and displays a completion message in a div instead.

function checkFinished (sender, args)
{
   args.suppressCompleteMessage(true);
   $get('statusDiv').innerHTML = 'Spell check is complete';
}
...
<div runat="server" id="statusDiv" />        

<telerik:RadSpell
   ID="RadSpell1"
   runat="server"
   ButtonType="PushButton"
   ControlToCheck="TextBox1"
   OnClientCheckFinished="checkFinished"
/>