I have followed this code before and for different things I was doing it worked fine. But in this situation I am stumped on how to tie it all in. On my radwindow close when I press the x i wna the window to close and then the page to refresh. I tried calling the close window function inside the pagerefresh but it doe snot work. I can call one or the other but not both. If I just call the pageRefresh it leaves a white space on page before it refreshes and looks tacky, So I figure if I can close it then refresh the page it should looke good.
<
telerik:RadWindowManager
ID
=
"rwManager"
runat
=
"server"
CenterIfModal
=
"true"
Modal
=
"true"
Animation
=
"FlyIn"
Behaviors
=
"Close"
Skin
=
"Web20"
ReloadOnShow
=
"true"
VisibleStatusbar
=
"false"
OnClientClose
=
"RefreshParentPage"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"rwdelete"
runat
=
"server"
NavigateUrl
=
"~/MAC/Delete.aspx"
Width
=
"600px"
Height
=
"300px"
ShowContentDuringLoad
=
"false"
></
telerik:RadWindow
>
<
telerik:RadWindow
ID
=
"rwChange"
runat
=
"server"
NavigateUrl
=
"~/MAC/Change.aspx"
Width
=
"800px"
Height
=
"600px"
ShowContentDuringLoad
=
"false"
></
telerik:RadWindow
>
<
telerik:RadWindow
ID
=
"rwNew"
runat
=
"server"
NavigateUrl
=
"~/MAC/NewUser.aspx"
></
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function closeWindow() {
var oWnd = GetRadWindow();
oWnd.close();
}
function RefreshParentPage() {
document.location.reload();
}