Child Control Cause Parent Update

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    24 posts
    Member since:
    Jun 2009

    Posted 02 Mar 2011 Link to this post

    I am trying to ajaxify a Grid so that certain elements will only cause limited updates and other elements will cause the whole grid to update. For example I my edit form template contains a user control and a second Grid, I am able to enable Ajax for the sub-grid with an Ajax Manager Proxy placed within the edit template and I am able to enable Ajax for certain input panels within the user control in the same way.  I am running into problems attempting to enable ajax for the Grid itself.  

    If I just add the main grid to my AjaxManager, the grid is ajaxified, but now all my internal ajaxified controls cause the whole Grid to update which is an issue because it is clearing out the status of my AsynUploader.  So instead I was attempting to enable ajax on the particular controls within the grid which should cause the whole grid to update on an item by item basis.  This is where I am running into problems.

    For example I am attempting to enable ajax for the submit button which sits inside my edit form by adding this ajax setting entry to the proxy ajax manager of the edit template:

    <telerik:AjaxSetting AjaxControlID="editSubmitLnk">
             <telerik:AjaxUpdatedControl ControlID="resourceGrid" />

    This does cause the button to make an ajax request as it should, I can see the event the button triggers firing properly when the button is pressed, the problem is that it does not cause the main grid (resourceGrid) to update as it should.
  2. Mira
    Mira avatar
    1124 posts

    Posted 07 Mar 2011 Link to this post

    Hello Andrew,

    Please try handling the AjaxSettingCreated event of the RadAjaxManger in the following way and let me know whether it helps:
    Copy Code
    protected void RadAjaxManager1_AjaxSettingCreated(objectsender, AjaxSettingCreatedEventArgs e)
        e.UpdatePanel.ChildrenAsTriggers = false;

    I am looking forward to your reply.

    Best wishes,
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top