When RadSpell makes changes to a textbox it does not cause the TextChanged event to fire. I tried calling a __doPostBack OnClientCheckFinished and it posts back but does not handle the TextChanged event on postback. Here's the code I am using at this point (I've tried without the __doPostBack call and with AutoPostback=True and it doesn't postback at all):
ASPX
<asp:TextBox runat="server" ID="ModuleTitleBox" Width="700" TextMode="MultiLine" Rows="1" AutoPostBack="true" /> |
<telerik:RadSpell ID="Radspell1" Runat="server" ControlToCheck="ModuleTitleBox" ButtonType="ImageButton" IsClientID="false" Skin="Black" OnClientCheckFinished="checkFinished" /> |
JS
function checkFinished(sender, args) { |
args.suppressCompleteMessage = true; |
__doPostBack(sender.get_controlToCheck(), ''); |
} |
VB
Protected Sub SaveTitleEdit(ByVal sender As Object, ByVal e As System.EventArgs) Handles ModuleTitleBox.TextChanged |
'saves changes to database here |
End Sub |