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

Slow closing RadWindow in Internet Explorer

7 Answers 222 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bogdan
Top achievements
Rank 1
Bogdan asked on 24 Jul 2014, 02:47 PM
I have a RadWindow inside a RadWindowManager (with NavigateUrl) that closes really slow but only in Internet Explorer (including 11). It only occurs when the window is maximized. The problem becomes very noticeable when there are many grid items in the window. Closing takes up to 15-20 seconds. Profiling shows that the offsetWidth function in IE takes a really long time. Chrome and Firefox are instant.

I tried many configuration options and it seems that the only way to solve this issue is by not having the window maximized. Also, if I just delete the window manually, everything works quickly. Setting DestroyOnClose = true does not solve this problem either. What are the extra calculations that are happening on close event? Is there a way to avoid them?

7 Answers, 1 is accepted

Sort by
0
Bogdan
Top achievements
Rank 1
answered on 24 Jul 2014, 02:52 PM
Attached a screenshot of the profiler. (Got a 500 error when posting it with the original post).

Thanks
0
Marin Bratanov
Telerik team
answered on 28 Jul 2014, 11:47 AM

Hello Bogdan,

Can you confirm whether you have AutoSize enabled? This is one of the few features that will do calculations based on the offsetWidth of an element, especially after setting an element width to 1px. It should not, however, be executed when the RadWindow is closed.

It is possible that autosizing or other custom logic that causes the delay is triggered by an event handler, e.g., to the OnClientBeforeClose or to the OnClientClose event. Thus, I would advise checking for such code to see if this is the root cause.

Another suggestion I can offer is using the OnClientBeforeClose event to hide the RadWindow popup element with a script, e.g.:

function OnClientBeforeCloseHandler(sender, args) {
    if (sender.isMaximized() && $telerik.isIE)
        sender.get_popupElement().style.display = "none";
}

to see if this makes a difference, at least to the user experience.

With this information, it will be very difficult to offer a concrete answer. If you can send us a small runnable sample that shows the issue you observe we could profile it too and see what is going on.

Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Solution Centre
Top achievements
Rank 1
answered on 01 Feb 2016, 02:59 PM

We are also facing a very similar issue in IE (especially in IE8). When we close a window it can take 5+ seconds for it to disappear but it is instant on Chrome. I have gone through our code and disabled everything that happene OnClientClose or OnClientBeforeClose but this has made no difference.  The JS function we use to close the window is also extremely simple

function closePopup() {
var oWindow =GetRadWindow();
 if (oWindow != null) {
   oWindow.close();
}
 return false;
}

I have run the profiler in IE8 developer tools and have attached the results. Any help you could give would be greatly appreciated

 

Cheers,

Joe

0
Solution Centre
Top achievements
Rank 1
answered on 01 Feb 2016, 03:01 PM
0
Stamo Gochev
Telerik team
answered on 02 Feb 2016, 07:37 AM
Hi Joe,

I have already handled your support ticket, so I am pasting my answer here as well. It will be best if we can continue the discussion in the ticket in order not to duplicate it in this forum thread.

Can you send me a sample page that reproduces the issue, so I can investigate it on my side? It will be helpful if you can isolate the scenario, so that there are no dependencies on additional JavaScript code. This will allow me to make a deeper analysis of the problem and provide you with further suggestions.

In addition, can you give me more information on the following questions:
Regards,
Stamo Gochev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
michael
Top achievements
Rank 1
answered on 04 Sep 2016, 12:22 PM
Was this issue ever resolved. I have exactly the same problem. The rad window closes instantly in Chrome and Edge - and some small radwindows on IE 11, but for a RadWindow with more controls in it, it can take 10 or 15 seconds to close in IE 11. Unless I can fix this, I will have to go back to using popup windows rather than radwindows - something I do not want to do.
0
Stamo Gochev
Telerik team
answered on 07 Sep 2016, 06:33 AM
Hello Michael,

The problem has been resolved according to the described scenario in a separate support ticket that is not visible in the forum.

If you are facing any issues with RadWindow, please open a new forum thread with a detailed description of the problem. This will ensure that we will keep the forum threads concise and dedicated to a specific case.

I want to kindly ask you to attach a sample page that reproduces the issue in the new ticket, so we can investigate it.

Regards,
Stamo Gochev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Window
Asked by
Bogdan
Top achievements
Rank 1
Answers by
Bogdan
Top achievements
Rank 1
Marin Bratanov
Telerik team
Solution Centre
Top achievements
Rank 1
Stamo Gochev
Telerik team
michael
Top achievements
Rank 1
Share this question
or