Radajaxmanager Not Updating LAbel

6 posts, 0 answers
  1. Anand
    Anand avatar
    3 posts
    Member since:
    Nov 2015

    Posted 24 Nov 2015 Link to this post

    Ajax Manager executing Code behind but not updatingLabel Value. My Code are below

    .ASPX PAge 

     

     <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">

        function textChange()
                {
                  var argument= "cbkDupeCreateAccountEmail_Callback|"+ $('#' + '<%= txtEmailAddressTest.ClientID %>').val();
                         $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("cbkDupeCreateAccountEmail_Callback");
                }

        
        </script>

    </telerik:RadCodeBlock>

     <telerik:radajaxmanager id="RadAjaxManager1" enableajax="true" onajaxrequest="RadAjaxManager1_AjaxRequest"
            runat="server">
                <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"  >
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTextBox1" />
                </UpdatedControls>
                </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:radajaxmanager>    
        <asp:TextBox ID="txtEmailAddressTest" runat="server" onblur="textChange();" maxlength="50" meta:resourcekey="txtEmailAddressTestResource1"> </asp:TextBox>     

    And In .CS (Code behind)

     protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
            {
                RadTextBox1.Text = txtEmailAddressTest.Text; 
            }

     

     

  2. Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 26 Nov 2015 Link to this post

    Hello Anand,

    Why you just don't you use the own server-side event handler of the TextBox?
    <asp:TextBox ... OnTextChanged="TextBox1_TextChanged">

    Of course, you will need to configure the AjaxSettings of the manager accordingly.

    Hope this helps. Please give it a try and let me know if it works for you.

    Regards,
    Eyup
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Anand
    Anand avatar
    3 posts
    Member since:
    Nov 2015

    Posted 26 Nov 2015 in reply to Eyup Link to this post

    Can you give example on this ? 
  5. Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 01 Dec 2015 Link to this post

    Hi Anand,

    I've created a sample web site to demonstrate how you can achieve this requirement. Please run the attached application and let me know if it helps you.

    Regards,
    Eyup
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Anand
    Anand avatar
    3 posts
    Member since:
    Nov 2015

    Posted 01 Dec 2015 Link to this post

    It's working postbacking every time. I don't need post back on each text change
  7. Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 03 Dec 2015 Link to this post

    Hello Anand,

    I suggest that you continue this matter in your formal support thread with ID: 990640. My colleague will provide you the required assistance.

    Regards,
    Eyup
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017