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


    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?


    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) 
                        radalert(message, 300, 300, title);},0) 
  2. George
    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:


    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,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top