Minimized RadWindow Disappears when resizing browser

4 posts, 0 answers
  1. Gilberto
    Gilberto avatar
    1 posts
    Member since:
    Oct 2011

    Posted 31 Oct 2012 Link to this post

    I have the fallowing problem :

    Added RestrictionZoneID and MinimizeZoneID for RadWindowManager in 2 div's

    When i run the code and open a window and then minimize it , if i resize the browser the minimzed window change location or disappers completly.

    I manage to pin point the problem with chrome dev tools ....

    the problem is the style of the wrapper div inside the minimize zone ... is doing the calculations wrong (position , left and top).

    please check the code bellow:

    Default.aspx
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="multiple_windows_from_code_behind_Default" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <body>
        <form id="form1" runat="server">
        
        <asp:ScriptManager ID="Scriptmanager1" runat="server" />
        <telerik:RadWindowManager runat="server" ID="RadWindowManager1"
        RestrictionZoneID="main"
        MinimizeZoneID ="bar" DestroyOnClose="true">
        </telerik:RadWindowManager>
     
    <asp:UpdatePanel ID="Updatepanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Button ID="Button1" Text="open a new RadWindow from the server" OnClick="Button1_Click" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <script type="text/javascript">
        function opeNewRadWindow(url)    {
            owin = radopen(url, null);
        }
    </script>
        <div id="main" style="border: 1px solid green; width:auto; height:600px;"></div>
        <div id="bar" style="border: 1px solid red; width:auto; height:40px;"></div>
        </form>
    </body>
    </html>

    Default.cs
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
     
    public partial class multiple_windows_from_code_behind_Default : System.Web.UI.Page
    {
     
        protected void Button1_Click(object sender, EventArgs e)
        {
            string url = "someurl.aspx?pageid=999"; //built the URL here
            ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "testing", "opeNewRadWindow" + "(\"" + url + "\");", true);
        }
     
    }




  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4533 posts

    Posted 01 Nov 2012 Link to this post

    Hi Gilberto,

    I am logging this case in our PITS and you can monitor, vote and comment on it in this URL. What I can suggest is that you use the MDI approach shown in this online demo to create tabs instead of using a minimize zone. On a side note - both zones require static dimensions set in pixels.


    Greetings,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Vinay
    Vinay avatar
    8 posts
    Member since:
    Jun 2018

    Posted 24 Oct 2018 Link to this post

    Hi,

    I am using the Radwindow for print preview in the WPF application . When I click the minimize button, the window dissappers and is found no where. And I will have no control over parent application until the process is killed via task manager .Please suggest the solution.

    Regards,

    Vinay

     

  4. Kalin
    Admin
    Kalin avatar
    1348 posts

    Posted 26 Oct 2018 Link to this post

    Hi Vinay,

    What I can suggest you would be to set the attached ShowInTaskbar property of RadWindow as shown below:
    RadWindowInteropHelper.SetShowInTaskbar(myWindow, true);

    This way you would be able to find the window in the taskbar when minimized.

    Hope this helps.

    Regards,
    Kalin
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top