This is a migrated thread and some comments may be shown as answers.

Radajaxmanager Not Updating LAbel

5 Answers 100 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Anand
Top achievements
Rank 1
Anand asked on 24 Nov 2015, 04:29 PM

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; 
        }

 

 

5 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 26 Nov 2015, 09:42 AM
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
0
Anand
Top achievements
Rank 1
answered on 26 Nov 2015, 01:29 PM
Can you give example on this ? 
0
Eyup
Telerik team
answered on 01 Dec 2015, 09:14 AM
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
0
Anand
Top achievements
Rank 1
answered on 01 Dec 2015, 12:32 PM
It's working postbacking every time. I don't need post back on each text change
0
Eyup
Telerik team
answered on 03 Dec 2015, 09:45 AM
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
Tags
Ajax
Asked by
Anand
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Anand
Top achievements
Rank 1
Share this question
or