This is a migrated thread and some comments may be shown as answers.
AjaxControlId of RadWindow Control
1 Answer 17 Views
This is a migrated thread and some comments may be shown as answers.
Gotcha
Top achievements
Rank 1
Gotcha asked on 13 Jul 2012, 01:02 PM
Hi,

Just a question which has been bugging me regarding the AjaxControlID with a Pop Up Window refresing the Parent Grid
I've always used this method http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

to refresh the Grid in the Parent. The point here is that in order to have the RadGrid to be refreshed, we need the Initiator ( AjaxControlId to be that of the AjaxManagerProxy ) with the AjaxRequest ( Since the ajax is called client side in the RefreshGrid() js in the parent)

However, it sounds like any ajax request done will always refresh the RadGrid, is it the case?
May be I'm missing something because I dont understand it correctly but Initially I thought I should restrict the initiator to be the lowest denominator ... hence the RadWindow Control ID.

Similar to If I have a button or DDL which causes a partial post back, I would put the ID of the button or DDL. WHy putting the ID of the Window Control does not trigger the Refresh of the Grid?

 Also let's assume I have 2 AjaxSettings; (RadAjaxManagerProxy1, grdList) and (cmdMyDropDown, rptAnotherList) declared in the mark up. Does it mean when cmdMyDropDown causes an ajax request, it will update both the grdList and rptAnotherList ?


Thanks 

 

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 18 Jul 2012, 10:32 AM
Hi Cyril,

The RadGrid control int his case will be only updated when the mentioned function is called by a specific control which fires its client event. 
Also note that in case you have two ajax settings as you described this doesn't mean that the DropDown will update the RadGrid also but only its updated control will be refreshed.

All the best,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Gotcha
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or