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

Child Control Cause Parent Update

1 Answer 89 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 02 Mar 2011, 06:48 PM
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">
        <UpdatedControls>
         <telerik:AjaxUpdatedControl ControlID="resourceGrid" />
</UpdatedControls>
</telerik:AjaxSetting>

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.

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 07 Mar 2011, 03:08 PM
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,
Mira
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!
Tags
Ajax
Asked by
Andrew
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or