Hi,
I need to close a rad window after making an ajax call.
I tried using the above code. and did not work for me.
But it does work if i change the EnableAJAX property of radajaxmaanger to false.
I need to close a rad window after making an ajax call.
| function closeandredirect() { |
| GetRadWindow().BrowserWindow.location.href = '/main/sdfds_Select.aspx'; |
| GetRadWindow().close(); //closes the window |
| } |
| function GetRadWindow() { |
| var oWindow = null; |
| if (window.radWindow) |
| oWindow = window.radWindow; |
| else if (window.frameElement.radWindow) |
| oWindow = window.frameElement.radWindow; |
| return oWindow; |
| } |
| lblCloseWindow.Text = "<script type='text/javascript'>closeandredirect();</script>"; |
| lblCloseWindow.Visible = true; |
I tried using the above code. and did not work for me.
But it does work if i change the EnableAJAX property of radajaxmaanger to false.