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

RadAjaxManager updating controls that it should

1 Answer 34 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 20 Oct 2009, 09:04 PM

I am have RadAjaxManager with more than 40 entries in it with settings to update target controls based on some source control. Just standard need why we need it.

Issue is for some of the events, the RadAjaxManger seems to update/refresh either the whole page or controls that are not supposed to be refreshed.

E.g. following is just excerpt of it. When an event occurs in 'trvRegions', I do not want to update controls ucFilterList or ucVolumeList. But still for trvRegions events, AjaxManager updates these two controls. When such behavior occurs, what is the best way to solve it? Do I have to have each control inside a PANEL or I can directly mention the user controls? How do I find out actually which controls the AjaxManager is going to update (if it is updating more than what I have set?)

Thanks,
Piyush Bhatt.

 

<

 

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="trvRegions">

 

 

 

 

 

<UpdatedControls>

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="ucQueryFieldSelector"/>

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="rcomboFilterFields"/>

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="ucFieldList"/>

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="ucQueryVolumeSelector"/>

 

 

 

 

 

</UpdatedControls>

 

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="ucQueryVolumeSelector" EventName="VolumeSelectionChanged">

 

 

 

 

 

<UpdatedControls>

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="ucVolumeList"/>

 

 

 

 

 

</UpdatedControls>

 

 

 

 

 

</telerik:AjaxSetting>

 

 

 

...........
</telerik:RadAjaxManager

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 22 Oct 2009, 10:13 AM
Hello Piyush,

When you need to ajaxify a control with RadAjaxManager, you need to make sure is it available and visible on the page all the time. As dynamic user controls are not always available on the page, it is suggested that you ajaxify their parent container(panel or div) instead of themselves.

Please give this suggestion a try and let me know if it helps.

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Piyush Bhatt
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Share this question
or