Declined
Last Updated: 06 Jun 2014 11:48 by ADMIN
ADMIN
Telerik Admin
Created on: 09 Jan 2013 22:51
Category: UI for ASP.NET AJAX
Type: Bug Report
0
solution for telerik is undefined
I struggled for weeks on the problem "Telerik$ is undefined".  I Always got this problem after closing a RadWindow.  But only on my development machine, not in the production version at customer site.

After I bought a new laptop, I hoped the problem would disappear due to complete reinstall.  However this was not the solution.

After weeks of search I found out that the problem is caused due to a DESTROYONCLOSE = TRUE in the RadWindowManager definition of the RadWindow. As soon as I change that to FALSE, my problem disappears.

Hopefullly this is a clue to you guys to fix this problem.

Best regards,
Guy Van Dyck

<telerik:RadWindowManager ID="RadWindowManager" runat="server" Modal="True" Width="1030px" Height="700px" Top="10px" Animation="Fade" ShowContentDuringLoad="False" ReloadOnShow="True" style="z-index: 10000" OnClientClose="RadWindowOnClientClose" DestroyOnClose="True" Behaviors="Move">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Top="10px" ReloadOnShow="true" DestroyOnClose="false" AutoSize="False" Modal="True" OnClientClose="RadWindowOnClientClose" Animation="Fade" Behaviors="Move">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
1 comment
ADMIN
Marin Bratanov
Posted on: 06 Jun 2014 11:48
Hello,

This can happen if some code has to continue working after the close() method of the RadWindow is called. Usually, when a complex control is clicked or fires an event that clsoes the RadWindow.

Solutions for that are removing the DestroyOnClose property or adding a small timeout around the call to close().

Regards,
Marin Bratanov,
Telerik