Radwindow: Windows are not closed sometimes

1 posts, 0 answers
  1. CESAEROB
    CESAEROB avatar
    1 posts
    Member since:
    Jan 2014

    Posted 20 Feb Link to this post

    I got an web application with a RadWindowManager.

    That windows calls a function named "cerrarVentanaEstatica" when I close windows. This code clear various items in parent page (default.aspx).

    The functionality works fine, but when I press ALT+TAB sometimes (we only use Internet Explorer), not always work correctly, don't close window, can't move or maximize or minimize. This too occurs when I open more than one window.

    I don't know what's the problem, but not always occurs.

    Default.aspx

    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
        <telerik:RadWindowManager ReloadOnShow="true" ID="TRKadministradorVentanas" runat="server"
            OffsetElementID="OffsetImage" Width="400px" Height="600px"
            Behaviors="Default" DestroyOnClose="True" InitialBehaviors="None"
            Top="" VisibleStatusbar="False" ShowOnTopWhenMaximized="false"
            ShowContentDuringLoad="False" Localization-Cancel="Cancelar" Localization-Close="Cerrar"
            Localization-Maximize="Maximizar" Localization-Minimize="Minimizar" Localization-PinOff="Quitar fijar"
            Localization-PinOn="Fijar" Localization-Reload="Recargar" Localization-Restore="Restaurar" Localization-Yes="Si" Opacity="100"
            OnClientCommand="OnClientCommand">
            <Windows>
                <telerik:RadWindow
                    ID="TRKventana"
                    runat="server">
                </telerik:RadWindow>
                <telerik:RadWindow ID="multiobjetos" Title="Búsqueda Multiobjeto" runat="server" DestroyOnClose="false" Width="935" Height="600" OnClientClose="cerrarVentanaEstatica" NavigateUrl="~/pages/consultas/busqueda_multiobjeto.aspx"></telerik:RadWindow>
     
                <telerik:RadWindow ID="productos" Title="Búsqueda de Productos" runat="server" DestroyOnClose="false" Width="935" Height="560" OnClientClose="cerrarVentanaEstatica" NavigateUrl="~/pages/consultas/busqueda_productos.aspx"></telerik:RadWindow>
                <telerik:RadWindow ID="albumes" Title="Búsqueda de Álbumes" runat="server" DestroyOnClose="false" Width="935" Height="560" OnClientClose="cerrarVentanaEstatica" NavigateUrl="~/pages/consultas/busqueda_albumes.aspx"  ></telerik:RadWindow>
                <telerik:RadWindow ID="peticiones" Title="Búsqueda de Peticiones" runat="server" DestroyOnClose="false" Width="935" Height="560" OnClientClose="cerrarVentanaEstatica" NavigateUrl="~/pages/consultas/busqueda_peticiones.aspx?tipoObjeto=PETICION" ></telerik:RadWindow>
                 
            </Windows>
        </telerik:RadWindowManager>   
    </telerik:RadAjaxPanel>

     

    function cerrarVentanaEstatica(e) {
       cerrarVentana(e._name);
    }

     

    forms.js

    function cerrarVentana(id) {
        //code for delete any items on parent
    }

     

    Thanks.

Back to Top