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

Alert from C# code.

1 Answer 78 Views
Window
This is a migrated thread and some comments may be shown as answers.
Katya
Top achievements
Rank 1
Katya asked on 14 Nov 2013, 02:21 AM
There is a radbutton in my page and I am writing some C# code in the button click event. In the C# code and I am parsing a date in a try block and if an exception is generated I want to display it and for that I used a radalert. But I found that the alert is displayed after all the c# lines of codes are executed. On debugging that line is executed without any error. Why the delay in displaying the alert, Is this a bug?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Nov 2013, 03:46 AM
Hi Katya,

This is how the RadWindowManager's popups work and it is not a bug. RadWindowManager's popups such as RadAlert cannot block the execution thread like the standard browser popups and hence it is displayed after executing all the C# code. If you have some logic which is to be executed after the popup is displayed, then you can make use of its ClientCallBack function.

Hope this helps,
Shinu.
Tags
Window
Asked by
Katya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or