I have tried the example for starting spell check from javascript but it is not working for me. The spell check windows opens and then immediately closes. If I set buttonType="PushButton" and then click on the spell check button the spell check works as desired.
I used a good Telerik sample but cannot find the exact reference that I used but the link below is basically what I used
http://www.telerik.com/help/aspnet-ajax/spell_howtolaunching.html
Below is a non working sample. I am using Telerik version 2009.2.826.35
I used a good Telerik sample but cannot find the exact reference that I used but the link below is basically what I used
http://www.telerik.com/help/aspnet-ajax/spell_howtolaunching.html
Below is a non working sample. I am using Telerik version 2009.2.826.35
Any help is greatly appreciated.
| <%@ Page Language="VB" AutoEventWireup="false" CodeFile="QuestionNote.aspx.vb" Inherits="QuestionNote" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head id="Head1" runat="server"> |
| <title>Question Note</title> |
| </head> |
| <body> |
| <script type="text/javascript"> |
| function spellCheck() |
| { |
| var spell = $find("<%= RadSpell1.ClientID %>"); |
| spell.startSpellCheck(); |
| } |
| function checkFinished (sender, args) |
| { |
| args.suppressCompleteMessage = true; |
| alert('finished'); |
| } |
| </script> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> |
| <table width='100%' cellpadding='2'> |
| <tr> |
| <td> |
| <asp:TextBox ID="tbxNote" runat="server" Width="100%" Height="100" TextMode="MultiLine" Text='asdf' |
| Rows="4"></asp:TextBox> |
| <br> |
| </td> |
| </tr> |
| <tr> |
| <td align='center'> |
| <input type="submit" name="Save" value="Save" class="ButtonNormal" onclick="return spellCheck()" /> |
| <asp:Button ID="btnCancel" runat="server" CssClass="ButtonNormal" Text="Cancel" /> |
| </td> |
| </tr> |
| </table> |
| <input id="control" type="hidden" name="control" runat="server"> |
| <telerik:RadSpell ID="RadSpell1" runat="server" |
| ButtonType="None" ControlToCheck="tbxNote" OnClientCheckFinished="checkFinished" /> |
| </form> |
| </body> |
| </html> |