RadAlert Centering Issue

2 posts, 0 answers
  1. lampy
    lampy avatar
    47 posts
    Member since:
    Oct 2006

    Posted 18 Jan 2008 Link to this post

    Hello,

    I am opening up a radalert via serverside (see below) and the radalert opens up in the top left corner.  How can I get the radalert to center?

    Thanks

    injectScript.Text = string.Format("<script type='text/javascript'>ShowAlert('Error', 'An error occurred, please contact your system admin.  Error Info: '{0}' ');</script>", ex); 

    <script type="text/javascript" language="javascript">          
                function ShowAlert(title, message) 
                { 
                    window.setTimeout(function() 
                    { 
                        radalert(message, 300, 300, title);},0) 
                } 
        </script> 
  2. George
    Admin
    George avatar
    298 posts

    Posted 18 Jan 2008 Link to this post

    Hi lampy,

    By default RadAlert is positioned in the center of the window. It seems to CSS issue, but could you please try to reproduce it on our demos here:

    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Window/Examples/BrowserDialogBoxes/DefaultCS.aspx


    Moreover I have attached sample JavaScript that allows the RadAlert window to be positioned with custom parameters. Please have a try with it and if the issue persists do not hesitate to ask

    All the best,
    George
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top