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

Minimized RadWindow Disappears when resizing browser

3 Answers 17 Views
Window
This is a migrated thread and some comments may be shown as answers.
Gilberto
Top achievements
Rank 1
Gilberto asked on 31 Oct 2012, 02:30 PM
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);
    }
 
}




3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 01 Nov 2012, 02:06 PM
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.
0
Vinay
Top achievements
Rank 1
answered on 24 Oct 2018, 07:17 AM

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

 

0
Kalin
Telerik team
answered on 26 Oct 2018, 07:24 AM
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.
Tags
Window
Asked by
Gilberto
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Vinay
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or