I have the following code setup where I am executing a AjaxRequest and wish to them update the RadGrid Control. The documentation says that when this occurs to setup the AjaxManager as the calling control.
In this case I am using a proxy so I am substituing it here instead of the master page AjaxManager. But it doesn't appear to trigger an update of the grid.
If I hard code the MasterPage's AjaxManager control Id in then it works. The thing that is bugging me is I should not need to know the name of the control in the master, what happens if it changes? Is there a way to not tightly couple the controlId to the masterPage and use the proxy controlId instead?
<telerik:RadCodeBlock>
<script type="text/javascript">
var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
ajaxManager.AjaxRequest(args);
</script>
</telerik:RadCodeBlock>
<asp:ScriptManagerProxy runat="server" ID="uxScriptManagerProxy"></asp:ScriptManagerProxy>
<telerik:RadAjaxManagerProxy ID="uxRadAjaxManagerProxy" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="uxTasksRadGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="uxTasksRadGrid" LoadingPanelID="RadAjaxLoadingPanel1"/>
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="uxRadAjaxManagerProxy">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="uxTasksRadGrid" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
(I also tried setting the ID="<%= RadAjaxManager.GetCurrent(Page).ClientID %> but that didn't appear to work either)
Any help appreciated!.