RadAjaxManagerProxy in AJAX dynamically loaded ascx UserControl.

3 posts, 1 answers
  1. Zdenek Plachy
    Zdenek Plachy avatar
    27 posts
    Member since:
    May 2007

    Posted 04 Jun 2013 Link to this post


    I have this scenario:

    • aspx page with some buttons
    • a placeholder
    • buttons are linked by RadAjaxManager to placeholder
    • on click I load ascx UserControl into placeholder (through AJAX, similar to your help page http://www.telerik.com/help/aspnet-ajax/ajax-load-user-controls.html)

    In the ascx UserControl I have RadAjaxManagerProxy and some controls ajax linked by this RadAjaxManagerProxy.

    Everything works fine with one exception. I found in Firebug that every ajax postback in user control causes refresh of full UserControl area, not just control which is target of ajax.

    Is possible to achieve behavior that AJAX in user control change only target (=UpdatedControls) control?

    Example: this is RadAjaxManagerProxy configuration from user control. Problem is that when I press btnCheck, AJAX will update not only Label1, but also Label2 and whole user control...

    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
            <telerik:AjaxSetting AjaxControlID="btnCheck">
                    <telerik:AjaxUpdatedControl ControlID="Label1"  />

    Thank you!
  2. Answer
    Kostadin avatar
    1689 posts

    Posted 07 Jun 2013 Link to this post


    I would suggest you to add AJAX settings programmatically instead using RadAjaxMananagerProxy. More information and an example could be found at the following help article.

    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 the blog feed now.
  3. DevCraft R3 2016 release webinar banner
  4. Zdenek Plachy
    Zdenek Plachy avatar
    27 posts
    Member since:
    May 2007

    Posted 07 Jun 2013 Link to this post

    Thank you for reply. It helped and my scenario works as I would like to have.

Back to Top