Hi everyone.
I've been searching and looking around and I'm still having problems with this.
I have a button that opens a RadWindow where the user types comments, clicks an OK button to close the window, and then the original window should redirect to the main menu.
I've tried doing this with another window and just clicking the Close button on the window, with no luck.
Here is my code:
Then, the .cs code for the button does the following:
The window does open, and it does close, but I don't see the alert messages and I don't get redirected to the Menu page.
Thank you for your help.
I've been searching and looking around and I'm still having problems with this.
I have a button that opens a RadWindow where the user types comments, clicks an OK button to close the window, and then the original window should redirect to the main menu.
I've tried doing this with another window and just clicking the Close button on the window, with no luck.
Here is my code:
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
//
<![CDATA[
function openRejWin() {
var oWnd = radopen("Confirm.aspx", "RadWindow3");
}
function OnRejectedClose(sender, eventArgs) {
alert("Moving on!");
window.location = "Menu.aspx";
}
function OnClosing(sender, eventArgs) {
alert("Closing!");
}
//]]>
</
script
>
</
telerik:RadScriptBlock
>
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
VisibleStatusbar
=
"false"
runat
=
"server"
Skin
=
"Hay"
EnableShadow
=
"true"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"RadWindow3"
runat
=
"server"
ReloadOnShow
=
"true"
Behaviors
=
"Close"
OnClientClose
=
"OnRejectedClose"
OnClientBeforeClose
=
"OnClosing"
NavigateUrl
=
"Confirm.aspx"
DestroyOnClose
=
"false"
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
Then, the .cs code for the button does the following:
btnReject.Attributes.Add(
"onclick"
,
"openRejWin(); return false"
);
The window does open, and it does close, but I don't see the alert messages and I don't get redirected to the Menu page.
Thank you for your help.