Hi,
I have a rad grid inside a user control and I need to refresh it upon return from a modal window. I know that I can use this code reproduced below. However, I can not use the ajaxRequest method of the RadAjaxManager because it is declared on the aspx page, not the ascx page where I need to refresh the grid. If I were to use the RadAjaxManagerProxy object, it does not have the AjaxRequest method.
How should I refresh the grid on the ascx page?
Thanks.
Suresh
function refreshGrid(arg)
{
if(!arg)
{
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
}
else
{
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");
}
}
function RowDblClick(sender, eventArgs)
{
window.radopen("EditFormCS.aspx?EmployeeID=" + eventArgs.getDataKeyValue("EmployeeID"), "UserListDialog");
}
I have a rad grid inside a user control and I need to refresh it upon return from a modal window. I know that I can use this code reproduced below. However, I can not use the ajaxRequest method of the RadAjaxManager because it is declared on the aspx page, not the ascx page where I need to refresh the grid. If I were to use the RadAjaxManagerProxy object, it does not have the AjaxRequest method.
How should I refresh the grid on the ascx page?
Thanks.
Suresh
function refreshGrid(arg)
{
if(!arg)
{
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
}
else
{
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");
}
}
function RowDblClick(sender, eventArgs)
{
window.radopen("EditFormCS.aspx?EmployeeID=" + eventArgs.getDataKeyValue("EmployeeID"), "UserListDialog");
}