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
Thanks
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,
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.
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
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:
- Are you testing with IE 8 or with a newer version of the browser in IE 8 mode?
- Do you use Classic or Lightweight rendering for your application?
Regards,
Stamo Gochev
Telerik
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