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

Multiple RadAlert Hangs

1 Answer 49 Views
Window
This is a migrated thread and some comments may be shown as answers.
Prabhu
Top achievements
Rank 1
Prabhu asked on 18 Dec 2008, 06:00 PM
function fnAlert()
{      
radalert(1);
radalert(2);
radalert(3);
}

When this function is called first alert is displayed. On clicking ok button in the alert, the screen gets frozen.
This is working fine in Mozilla but not in IE 7.
How to make all three alerts display with out the above said issue ?

Thanks,
SudhaKaran S.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 22 Dec 2008, 11:24 AM
Hi Prabhu,

Unlike browser's alert, radalert cannot block the thread's execution and that is why such behavior occurs. What you can do is to hook to the close eventhandler of the dialog and then to call another:

var oAlert = radalert("alert1");
oAlert.add_close(callAnother);


where callAnother is the name of a function that should be called next and which will in this case open another radalert.

As an alternative, I suggest to show all 3 alerts in one radalert dialog - radalert supports HTML content so you can separate every alert message on a new line, e.g.  radalert("alert1,<br/>alert2,<br/>alert3");.



Greetings,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Prabhu
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or