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

Modal window not centering

3 Answers 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 26 May 2011, 02:21 PM
I've got a modal window that's being used for Delete confirmation. The window is not centering however. See the attached.
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Modal="True" AutoSize="True" >
</telerik:RadWindowManager>

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 May 2011, 01:47 PM
Hello John,

I cannot exactly reproduce the issue you are facing. One suggestion is to center the window by attaching OnClientShow event to your WindowManager and position the window using the property sender.center(). Give a try with the following approach.

Javascript:
<script type="text/javascript">
    function OnClientShow(sender)
    {
     var window = sender;
       sender.center();
    }
</script>

Also check the following help documentation which explains more about this.
Client-Side Events.

Thanks,
Shinu.
0
SHP
Top achievements
Rank 1
answered on 11 Jun 2011, 01:20 AM
I'm having the EXACT same problem.
0
Georgi Tunev
Telerik team
answered on 13 Jun 2011, 11:46 AM
Hello guys,

This usually happens due to a problematic CSS setting on the page - e.g. position:relative to a parent element, which breaks the CSS of the control. If examine the screenshot in the original post, the modal dialog does not cover the whole page - this indicates that there is a CSS issue on that page. To be able to help however, we need to get either a live Url or a sample project that reproduces the problem, so we can examine it closely.

Greetings,
Georgi Tunev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Window
Asked by
John
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
SHP
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or