I have a formview inside my radwindow. If close button is clicked inside a formview I want the window to close.
I tried to call javascript to close window, event is fired, but it does not close the window.
********** Javascript ************
function GetRadWindow() {
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
}
function Close() {
var arg = new Object();
var oWnd = GetRadWindow();
oWnd.close(arg);
}
********** Button to close the radwindow inside formview **************
<asp:LinkButton ID="lnkBtnClose" runat="server" CausesValidation="False" CommandName="Close" Text="Close" ToolTip="Close" OnClientClick="Close(); return false;" />
I tried to call javascript to close window, event is fired, but it does not close the window.
********** Javascript ************
function GetRadWindow() {
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
}
function Close() {
var arg = new Object();
var oWnd = GetRadWindow();
oWnd.close(arg);
}
********** Button to close the radwindow inside formview **************
<asp:LinkButton ID="lnkBtnClose" runat="server" CausesValidation="False" CommandName="Close" Text="Close" ToolTip="Close" OnClientClick="Close(); return false;" />