I'm trying to convert my ASP.Net windows to AJAX windows, and running into an AJAX problem. The base page (the one that opens the Window) has a Grid that I want to refresh when the window is closed. Previously, it was using the refreshGrid(arg) that seems to be popular, but I'm trying to convert it to an AJAX call using the OnClientClose event.
My Javascript function looks like this:
function OnClientClose(sender, eventArgs)
{
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
}
And the server-side event looks like:
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument == "Rebind")
{
RadGrid2.Rebind();
}
}
I can see the server-side event firing in debug mode, but the grid never updates and I get a Javascript error "Object doesn't support this property or method". What am I doing wrong?
Bill