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

Radwindow: Windows are not closed sometimes

2 Answers 42 Views
Window
This is a migrated thread and some comments may be shown as answers.
CESAEROB
Top achievements
Rank 1
CESAEROB asked on 20 Feb 2017, 12:05 PM

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.

2 Answers, 1 is accepted

Sort by
0
CESAEROB
Top achievements
Rank 1
answered on 25 Oct 2018, 06:53 AM

This problem persist yet.

I have a web application based on Telerik Windows. I have two kinds of windows, some that interact with a map and needs to delete some objects drawn on the map, and others that do not. The first, response to an event clientClose located in Default.aspx file (this window is a separated file, for example: search.aspx, setup.aspx, etc) and call to another function located in forms.js.

Once several windows are open, I close them, press key alt (for show IE menu), and windows that I closed, open and do not respond the controls to maximize, minimize, close, etc. The function to close window not fire. If I put a breaking point, do not stop here.

This happens whenever I press the ALT key.

Please, can anybody help me?

TY

0
Marin Bratanov
Telerik team
answered on 25 Oct 2018, 01:06 PM
Hi,

Such behavior is highly irregular and my best guess is that there is some JavaScript error thrown when the Alt key is pressed (for example, some handler listening to a keydown event throws an error). I also advise that you ensure IE is not running in Compatibility Mode: https://www.telerik.com/support/kb/aspnet-ajax/details/problem-in-ie-works-fine-in-other-browsers.
If this does not help you resolve this, please open a support ticket and send us an MCVE (https://stackoverflow.com/help/mcve) so we can investigate this.


Regards,
Marin Bratanov
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
CESAEROB
Top achievements
Rank 1
Answers by
CESAEROB
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or