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

Delay in closing RadAlert

1 Answer 83 Views
Window
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 2
James asked on 10 Dec 2008, 09:43 PM
I have a static Sub in a class that will display a RadAlert based on the message that is passed to it.
Here is that code:
    Public Shared Sub NonAjaxAlert(ByVal message As StringByVal AlertTitle As StringOptional ByVal UserName As String = "")  
        Try 
            Dim scriptString As String = String.Empty  
            Dim exPage As Page = HttpContext.Current.CurrentHandler  
 
            scriptString = "(function(){var f = function(){radalert('" & message & "',null,null,'" & AlertTitle & "');Sys.Application.remove_load(f);};Sys.Application.add_load(f);})()" 
            ScriptManager.RegisterStartupScript(exPage, exPage.GetType(), "radalert", scriptString, True)  
        Catch ex As Exception  
            'Generic Error routine to log errors  
        End Try 
    End Sub 

So when this alert is shown to a user and they click 'OK' to acknowledge the alert, there is a delay for the alert to close.  What is causing this delay and how do I correct it?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 11 Dec 2008, 04:07 PM
Hi James,

We tried your code but were not able to reproduce the problem locally - everything is working as expected and there is no delay after OK is clicked.

Please open a support ticket and send us a small sample project where this behavior can be reproduced. We will check it and do our best to help.



Best wishes,
Fiko
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
James
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Share this question
or