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

[Solved] RadAJAX and Response

1 Answer 125 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
MD
Top achievements
Rank 1
MD asked on 12 Aug 2009, 06:55 PM

I have a question in regards to the response that is returned after an ajax request.  When I review the response in Fiddler after an ajax request it appears to contain content from other updatepanels that are not connected to the ajax request. 

I have an aspx that is setup for ajax as follows:

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnablePageHeadUpdate="False" UpdatePanelsRenderMode="Inline">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="divOne">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="divTwo" LoadingPanelID="LoadingPanel1" /> 
                        <telerik:AjaxUpdatedControl ControlID="divOne" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 

divTwo contains a usercontrol that has a radajaxmanagerproxy as follows

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="radgOne">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="radgOne" LoadingPanelID="LoadingPanel1" /> 
                <telerik:AjaxUpdatedControl ControlID="RadWindowManager"/>  
                <telerik:AjaxUpdatedControl ControlID="msg"/>  
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 


The usercontrol contains a grid "radgOne" and other controls. When ever a operation is performed on the grid the ajax works; however, when viewing the response I see content from "divOne" on the aspx being sent back adding the overall size of the returned content.  Is this expected behaviour or is there something I'm over looking.

One other question.  I know RadAJAXManager uses updatepanels internally was wondering if there is an easier manner in which to set the ChildrenAsTriggers property other than programatically using the OnAjaxSettingCreated event?  Could there be property added to the AjaxUpdatedControl class?

Thanks
Matt

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 14 Aug 2009, 02:03 PM
Hello,

I suggest you review the following help articles for more information about how to use Ajax in page-user control scenario:
OnAjaxRequest event

OnAjaxSettingCreated event
RadAjax and WebUserControls

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
MD
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or