RadAjaxManager updating controls that it should

2 posts, 0 answers
  1. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 20 Oct 2009 Link to this post

    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

  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 22 Oct 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top