Hi rahul,
I already answered your other thread and for your convenience I pasetd my reply below. Please, note, that your other thread was for RadWindow for ASP.NET and this one is for RadWindow for ASP.NET AJAX and I am not sure what exact version you are actually using. In case you use the RadWindow for ASP.NET, you should use the method Close, with a capital "C", otherwise - with a small letter - close (this is important since javascript is case sensitive).
I am not sure whether you want to close the RadWindow from the main page or from within its content page. That is why I will describe the both scenarios for you.
Closing a RadWindow from the main page
In order to close the RadWindow from the main page, you should first obtain a reference to it (e,g with $find, depending on your setup) and then call its method close().
Closing a RdaWindow from its content page (e.g on button click)
The logic is the same but in order to get a reference to the RadWindow from inside it you should use the following GetRadWindow() function:
function GetRadWindow()
{
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
}
After you have declared this function, you should reference the RadWindow object and close it when needed as GetRadWindow().close().
You can find the GetRadWindow function in our online demos and documentation, e.g in the article below:
http://www.telerik.com/help/aspnet-ajax/window_programmingopeningfromwithin.html
and the close method is available in the control's client-side API reference:
http://www.telerik.com/help/aspnet-ajax/window_programmingradwindowmethods.html
I hope that my explanations are detailed enough and helpful, let me know how it goes.
Kind regards,
Svetlina
the Telerik team