I hope this question hasn't been asked/answered before..
On a page we have a div that is filled with dynamic content; it's populated via a JavaScript AJAX method so we can set a refresh timer, refreshing the data every 3 minutes. The initial load of this div is called from Page_Load but not on PostBack. There are User Controls on the page that when used can require the div to update it's content, in these cases the User Control will add to Response Scripts a call to the JavaScript AJAX method. To keep the update seemless we added a RadAjaxManager to link those User Controls to the div.
<telerik:AjaxSetting AjaxControlID="UserControl">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="UserControl" />
<telerik:AjaxUpdatedControl ControlID="dynDiv" />
</UpdatedControls>
</telerik:AjaxSetting>
The problem is that the User Controls won't _always_ require the div to update its content and in the cases where it shouldn't it won't add the JavaScript call to Response Scripts, but the RadAjaxManager will still update the div, refreshing it to it's initial state (a loading gif).
I've tried programmatically adding AjaxSettings for the specific buttons in the User Control that may update the div. This was in the code behind of the User Control using a reference to the main pages RadAjaxManager, but those buttons won't always update the div so it'll still cause the problem, just in fewer circumstances.
I hope I explained the situation well enough and hopefully someone has some help to offer :)
Mike.
On a page we have a div that is filled with dynamic content; it's populated via a JavaScript AJAX method so we can set a refresh timer, refreshing the data every 3 minutes. The initial load of this div is called from Page_Load but not on PostBack. There are User Controls on the page that when used can require the div to update it's content, in these cases the User Control will add to Response Scripts a call to the JavaScript AJAX method. To keep the update seemless we added a RadAjaxManager to link those User Controls to the div.
<telerik:AjaxSetting AjaxControlID="UserControl">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="UserControl" />
<telerik:AjaxUpdatedControl ControlID="dynDiv" />
</UpdatedControls>
</telerik:AjaxSetting>
The problem is that the User Controls won't _always_ require the div to update its content and in the cases where it shouldn't it won't add the JavaScript call to Response Scripts, but the RadAjaxManager will still update the div, refreshing it to it's initial state (a loading gif).
I've tried programmatically adding AjaxSettings for the specific buttons in the User Control that may update the div. This was in the code behind of the User Control using a reference to the main pages RadAjaxManager, but those buttons won't always update the div so it'll still cause the problem, just in fewer circumstances.
I hope I explained the situation well enough and hopefully someone has some help to offer :)
Mike.