Hi,
i'm using telerik radwindow and radgrid in my page.
when i double click on grid record my pop-up window displayed. i have 'Close' asp button on my child page.
i'm calling CloseandRebind() javascript function on 'Close' click. it will refresh my parent page. RadAjaxmanager displays the loading panel while refresh of the parent page.
my child rad window displays 'X' button on Top Right corner. i have written OnClientClose function on my parent page window defination like below.
owin.OnClientClose = "OnClientClose"
but page is not getting refreshed on click of 'X'. also loading panel also not displayed.
//java script
function OnClientClose(sender,args)
{
//window.location.href = window.location.href;// - will refresh the page by reloading the URL
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
}
function CloseAndRebind(args)
{
GetRadWindow().Close();
GetRadWindow().BrowserWindow.refreshGrid(args);
}
function refreshGrid(arg) {
if (!arg) {
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
}
else {
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");
}
}
please sugggest some solution so that both the close buttons works proper and loading panel displays on click of both buttons.
Thanks
Sweta