This is a migrated thread and some comments may be shown as answers.

[Solved] RadAlert OnClientClose not working

2 Answers 214 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jose
Top achievements
Rank 1
Jose asked on 03 Dec 2007, 08:41 PM
Hi, I'm calling a radalert message from the code-behind (server-side) using this:

string radalertscript = "<script language='javascript'> window.onload = function(){setTimeout('ConfirmationMessage();',0);}</script>";
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "confirm", radalertscript);

In the client side it looks like this:

 function ConfirmationMessage()
            {
                var oWnd = radalert('Message', 310, 120);
                oWnd.OnClientClose = function(){window.location.href="Default.aspx";}
            }

However I'm not able to do nothing OnClientClose event; not even show a simple javascript alert message.

Am I doing something wrong?  Is there a workaround I can use?

Thanks in advance for your help

2 Answers, 1 is accepted

Sort by
0
Jason Maronge
Top achievements
Rank 1
answered on 04 Dec 2007, 03:25 AM
Jose,

Please check out this following link and see if it helps.

http://www.telerik.com/community/forums/thread/b311D-babkkh.aspx

Jason
0
Jose
Top achievements
Rank 1
answered on 04 Dec 2007, 02:59 PM
Thank you so much Jason, that was exactly what I needed. 
It's working now.

Tags
Window
Asked by
Jose
Top achievements
Rank 1
Answers by
Jason Maronge
Top achievements
Rank 1
Jose
Top achievements
Rank 1
Share this question
or