Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Window > radWindow loads in left top corner
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered radWindow loads in left top corner

Feed from this thread
  • brano avatar

    Posted on May 9, 2011 (permalink)

    Hi,

    I would like to ask you for a help with rad Window. It should be opened with height and width specified in  window manager declaration, but once I open radWindow from JavaScript, it shows up in fullscreen mode. When I close this "fullscreen" window and reopen it, radWindow is loaded in the left top corner of the browser and there is no way to move it anywhere. I also tried to set up width and height on the radWindow but it didn t work too.

    The other problem (it seems that these problems are connected) is that opened radWindow is loaded twice. First load fills the values of components placed in the form, places the form in the center of the screen for a little while and set up window title. The second load places the form in top left corner of the browser and changes title of the form to text "Info".

    This is the way how I open the form:

    function openWin() {
    var hcc = document.getElementById('<%= newCheckedCats.ClientID %>')
    var oWnd = radopen('/dialogs/dialog_categories.aspx?parid=' + hcc.value, null);   
    oWnd.setUrl(oWnd.get_navigateUrl()); 
    }

    This is part of declaration of radwindow and radwindow manager:

    <telerik:RadWindowManager ID="RadWindowManager1" Animation="None" runat="server"
            InitialBehaviors="Default" Behaviors="Close, Move, Resize, Maximize" ShowContentDuringLoad="false"
            Modal="True" Title="Our title" ToolTip="Our tooltip"  
            OnClientClose="OnClientclose" VisibleStatusbar="False" VisibleTitlebar="True" AutoSize="False" 
            BackColor="#FF9900" DestroyOnClose="True" Width="450" Height="400">
            <Windows>
              <telerik:RadWindow ID="RadWindow1" runat="server" Modal="True" DestroyOnClose="true" Height="450" Width="400">
              </telerik:RadWindow>
            </Windows>

    This is the function which runs once the form s body is loaded:

    function AdjustRadWidow() {
         var oWindow = GetRadWindow();
         setTimeout(function() { oWindow.autoSize(true); if ($telerik.isChrome || $telerik.isSafari) ChromeSafariFix(oWindow); }, 500);
       }

  • Georgi Tunev Georgi Tunev admin's avatar

    Posted on May 11, 2011 (permalink)

    Hello brano,

    I just answered the support ticket that your colleague Igor posted on the same subject. For convenience I am pasting part of my reply below:

    The code that is posted in the forum looks OK and is working as expected in our test environment. This leads me to believe that the problem is somewhere else in the page's logic, but without having a better view over your exact setup and logic, I cannot be of much help. Please try isolating the problem in a small sample project and attach it to this ticket - I will check it and get back to you with the most appropriate solution right away.

    Greetings,
    Georgi Tunev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  • Igor avatar

    Posted on May 14, 2011 (permalink)

    Hi all,

    problem was in setting InitialBehaviors="Default", changing to InitialBehaviors="None" resolved it.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Window > radWindow loads in left top corner