[CLOSED] Desktop windows not destroyed on closing

  1. #1

    [CLOSED] Desktop windows not destroyed on closing

    Hi I noticed that when a desktop window is created and closed the desktop window is not actually destroyed because when i show the window again the textbox in the window still retains the value it had before it was close .

    The code below is the code used to generate the desktop window.

    How can the desktop window be destroyed on closing of the window so that when the call is made to show the window it will show a fresh window. I want to be able to use the same ID for the window. I know that if i assign a new ID for the window it shows a fresh window but i want to use the same ID.

    createWindow: function () {
          var configobject=  {
                    url: "/Home/ShowSettingWindow",
                    width: 300,
                    height: 300,                
                    title: hiddenSettingText.getValue(),
                    minimizable: false,
                    maximizable: false
            var desk = ActivityMonitorDesktop.getDesktop();       
            var param = {};
            var config = {
                id: param.containerId,
                title: configobject.title || "Desktop Window",
                width: configobject.width || 300,
                height: configobject.height || 200,
                layout: "fit",
                minimizable: !Ext.isEmpty(configobject.minimizable) ? configobject.minimizable : true,
                maximizable: !Ext.isEmpty(configobject.maximizable) ? configobject.maximizable : true,
                resizable: !Ext.isEmpty(configobject.resizable) ? configobject.resizable : false,
                draggable: !Ext.isEmpty(configobject.draggable) ? configobject.draggable : true,
                closable: true,
                closeAction: 'close',
                autoLoad: {
                    url: configobject.url,
                    noCache: true,
                    scripts: true,
                    params: param
                listeners: {
                    show: configobject.onShow || function () { }
            w = desk.createWindow(config);
    public ActionResult ShowSettingWindow(string containerId)
                Ext.Net.MVC.PartialViewResult partialViewResult = new Ext.Net.MVC.PartialViewResult(containerId, RenderMode.AddTo);
                partialViewResult.SingleControl = true;
                partialViewResult.ViewName = "SettingWindow";         
                return partialViewResult;
    <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <ext:Panel  runat="server" Layout="FormLayout" LabelAlign="Top" ButtonAlign="Right"  PaddingSummary="10px 10px 0px 10px" Border="false" ID="pnlSetting" IDMode="Explicit" >
           <ext:NumberField  ID="txtupdateFrequency" runat="server" FieldLabel="Frequency" AnchorHorizontal="95%" DecimalPrecision="0"   MaxValue="30" MinValue="1"></ext:NumberField>
           <ext:NumberField  ID="txtlogListCount" runat="server" FieldLabel="Width" AnchorHorizontal="95%" DecimalPrecision="0"   MaxValue="300" MinValue="1"></ext:NumberField>
           <ext:NumberField ID="txtMaximumLogLines" runat="server" FieldLabel="length" AnchorHorizontal="95%" DecimalPrecision="0"   MaxValue="1000" MinValue="50" ></ext:NumberField>
        <ext:Button runat="server" Text="<%$ Resources:WebResources|Common.ButtonLabels, DialogButtonOK %>">    
        <ext:Button  runat="server" Text="<%$ Resources:WebResources|Common.ButtonLabels, DialogButtonCancel %>">
    Last edited by Daniil; Feb 03, 2012 at 6:47 PM. Reason: [CLOSED]
  2. #2

    This is enough
    closeAction: 'close'
    to get a Window destroyed on close.

    I guess it might be a cache issue of loaded content into a window.

    Please try to use a cache buster, for example:
    url: configobject.url + "?" + new Date().getTime();

Similar Threads

  1. [CLOSED] [1.0] Closing windows?
    By edigital in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 05, 2010, 3:28 PM
  2. [CLOSED] Executing actions on closing dinamically created windows
    By jcanton in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 24, 2009, 7:31 AM
  3. [CLOSED] Closing dinamically created windows
    By jcanton in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 23, 2009, 9:24 AM
  4. [CLOSED] Desktop BUG: Modal windows can be minimized and you can interact with the other windows
    By juanpablo.belli@huddle.com.ar in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 31, 2009, 2:49 PM
  5. Replies: 1
    Last Post: Mar 17, 2009, 1:17 AM

Posting Permissions