Hi,
if I close RadWindow and then reopen it using .setVisible(true) on client side - close button in window title not working anymore. Is it possible to fix this?
here a sample page, press open, close window, press reopen, try to close - nothing happens.
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
>
<
script
type
=
"text/javascript"
>
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function TestCloseDates() {
var manager = GetRadWindowManager();
var oWnd = manager.getWindowById('wndDates');
oWnd.setVisible(true);
//oWnd.restore();
oWnd.setActive(true);
}
</
script
>
</
head
>
<
body
>
<
form
id
=
"Form1"
method
=
"post"
runat
=
"server"
>
<
input
type
=
"button"
value
=
"Open"
onclick
=
"window.radopen('', 'wndDates');"
/>
<
input
type
=
"button"
value
=
"Reopen"
onclick
=
"TestCloseDates();"
/>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
/>
<
telerik:RadWindowManager
ID
=
"wnd1"
runat
=
"server"
>
<
Windows
>
<
telerik:RadWindow
Height
=
"365px"
Width
=
"375px"
ID
=
"wndDates"
runat
=
"server"
ReloadOnShow
=
"True"
>
<
ContentTemplate
>
Hi There!
</
ContentTemplate
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
</
form
>
</
body
>
</
html
>
Thanks,
Alex