Radwindow Top automatically re-sized when AutoSize="False"

2 posts, 0 answers
  1. niteesh
    niteesh avatar
    1 posts
    Member since:
    May 2016

    Posted 09 May Link to this post


    I have added a Radwindow to my aspx page as below.

     <telerik:RadWindow ID="rdWin" runat="server" Behaviors="None" AutoSize="false"
                Width="500px" Height="300px" Top="80px" Left="100px" Modal="true" OnClientShow="RadWindowAddOthers_Show" >


    My AutoSize attribute is false. Inside my "RadWindowAddOthers_Show" method i am resetting few textboxes.

    I am using ie11 in Ie9 mode.

    <meta http-equiv="X-UA-Compatible" content="IE=9" />

    <html class="t-ie t-ie9 _Telerik_IE9">

    The above renders as below:


    <div class="RadWindow RadWindow_Default rwNormalWindow rwTransparentWindow" id="RadWindowWrapper_ctl00_MainPageContentPlaceHolder_rdWin" style="top:770px;left: 433px; width: 500px; height: 300px; visibility: visible; position: absolute; z-index: 3002; transform: none;" unselectable="on"><table class="rwTable" style="height: 300px;" cellSpacing="0" cellPadding="0">


    The top and left attributes are not as per the given values.

    Also in the content template i have a div as follows which encloses all the content:

    <div class="RadGrid RadGrid_Default" style="width: 500px;">

    As an attempt to fix i have modified it to the following to make sure my content height is calculated properly:

    <telerik:RadWindow ID="rdWin" runat="server" Behaviors="None" AutoSize="true"
                Width="500px" Height="300px" Top="80px" Left="100px" Modal="true" OnClientShow="RadWindowAddOthers_Show" OnClientAutoSizeEnd="OnClientAutoSizeEnd">

            function OnClientAutoSizeEnd(sender) {
                if ($telerik.isIE9) {
                    setTimeout(function () {
                    }, 0);

    I see that the radwindow is still positioned wrongly(i mean the top and left attributes are wrong). Can anyone suggest a fix to this issue?

  2. Marin Bratanov
    Marin Bratanov avatar
    3567 posts

    Posted 10 May Link to this post


    A modal RadWindow is always centered on the screen and the following article explains how to change that so Top and Left can take effect: http://docs.telerik.com/devtools/aspnet-ajax/controls/window/troubleshooting/positioning-a-modal-radwindow.


    Marin Bratanov
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top