RadAjaxManager Blocks server side event

2 posts, 0 answers
  1. RYan
    RYan avatar
    1 posts
    Member since:
    Oct 2012

    Posted 19 Oct 2012 Link to this post

    I have a submit button white pops a radconfirm dialog asking Yes or cancel. If they click Yes then I need to update a textbox from server side c# code. But if I do all of this the RadTextBox ontextchanged method is never fired

    Once again, THE PROBLEM IS RADTEXTBOX ONTEXTCHANGED NEVER FIRES!!!!!! HOW TO GET IT TO FIRE THE SERVER SIDE EVENT? I can not remove it from up UpdatedControls because I need it for the confirm dialog

    <
    telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="lblError" />
                           <telerik:AjaxUpdatedControl ControlID="txtSONumber" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>




    <telerik:RadTextBox ID="txtSONumber" Width="300px" runat="server" AutoPostBack="true" CausesValidation="true"
                                    Onkeydown="Keypress_Event()" ontextchanged="txtSONumber_TextChanged" >
                                </telerik:RadTextBox>




    function Keypress_Event() {
     
     
                  var combo = $find("<%= txtCustomerName.ClientID %>");
                  combo.set_value("");
     
              }


  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 24 Oct 2012 Link to this post

    Hello,

    I tested the provided code and OnTextChanged event is fired as expected. I am attaching my test page to this message for your reference. Give it a try and let me know what is the difference in your case.

    Greetings,
    Pavlina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top