TextChanged

2 posts, 0 answers
  1. Darin Beard
    Darin Beard avatar
    24 posts
    Member since:
    Dec 2004

    Posted 25 May 2010 Link to this post

    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 ObjectByVal e As System.EventArgs) Handles ModuleTitleBox.TextChanged 
        'saves changes to database here 
    End Sub 

  2. Darin Beard
    Darin Beard avatar
    24 posts
    Member since:
    Dec 2004

    Posted 25 May 2010 Link to this post

    Looks like I found my own answer. Apprently the OnClientCheckFinished event fires before it actually updates the textbox so posting back at that time is posting back before the text has changed. I changed it to do the postback using OnClientDialogClosed and that handled the TextChanged event on postback. Glad I could help me. :)
Back to Top