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

RadAlert Centering Issue

1 Answer 99 Views
Window
This is a migrated thread and some comments may be shown as answers.
lampy
Top achievements
Rank 1
lampy asked on 18 Jan 2008, 07:30 AM
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> 

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 18 Jan 2008, 12:53 PM
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
Tags
Window
Asked by
lampy
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or