I have switched the RadAjaxManager to the MasterPage and added the RadAjaxManagerProxy to the custom control. My problem is when I use the find method it is no longer anymore. I am not sure what I am dong wrong here.
function refreshDependantsGrid(arg)
{
if(arg=='')
$find("<%= RadAjaxManager1.GetCurrent(this.Page).ClientID %>").ajaxRequest("Grid1Rebind");
else
$find("<%= RadAjaxManager1.GetCurrent(this.Page).ClientID %>").ajaxRequest("Grid1RebindAndNavigate");
}
function refreshCommentsGrid(arg)
{
if(arg=='')
$find("<%= RadAjaxManagerProxy1.ClientID %>").ajaxRequest("Grid2Rebind");
else
$find("<%= RadAjaxManagerProxy1.ClientID %>").ajaxRequest("Grid2RebindAndNavigate");
}
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid2" />
<telerik:AjaxUpdatedControl ControlID="RadGrid1" />
</UpdatedControls>
</telerik:AjaxSetting>
....
function refreshDependantsGrid(arg)
{
if(arg=='')
$find("<%= RadAjaxManager1.GetCurrent(this.Page).ClientID %>").ajaxRequest("Grid1Rebind");
else
$find("<%= RadAjaxManager1.GetCurrent(this.Page).ClientID %>").ajaxRequest("Grid1RebindAndNavigate");
}
function refreshCommentsGrid(arg)
{
if(arg=='')
$find("<%= RadAjaxManagerProxy1.ClientID %>").ajaxRequest("Grid2Rebind");
else
$find("<%= RadAjaxManagerProxy1.ClientID %>").ajaxRequest("Grid2RebindAndNavigate");
}
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid2" />
<telerik:AjaxUpdatedControl ControlID="RadGrid1" />
</UpdatedControls>
</telerik:AjaxSetting>
....