My default.aspx page, which is being opened using the RadWindow control, has a Cancel button which does not work in closing the window. I try the following, amongst many others, which does not work:
function
Cancel_Clicked()
{
var oWindow = GetRadWindow();
oWindow.close();
}
OR:
function Cancel_Clicked()
{
window.opener = window.radWindow;
window.close();
}
<button onclick="Cancel_Clicked();" class="bButton">Cancel</button>
When I open default.aspx in a separate window, the closing event works with the second Cancel_Clicked() function. But, nothing is successful in closing the default.aspx page when I open it in the RadWindow.