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

Opening several windows at once smoothness

3 Answers 64 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jordon
Top achievements
Rank 1
Jordon asked on 18 Sep 2013, 03:26 AM
Hi,

I have a site where it is possible up to 15 kendo windows could open all at once. And I have noticed a decrease in animation quality once we go past 5-6 windows.
I understand why this occurs, what I am wondering is if there is a better way for me to open these windows. 

Mainly there is one time when so many windows will open at once, and once more when a user leaves (the windows close).

Is there something I can do to help keep this animation smoother when so many are coming on at once?

How could I open one at a time? Open 1, wait until its animation is completely finished, then open the next? I know that 'activate', according to the documentation, is called once the animation is complete but it does not seem that way, but maybe that is do to something else I am doing.


Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 18 Sep 2013, 08:20 AM
Hi Jordon,

I am not aware what justifies the need to open 15 popups at once, but generally, you could chain the opening animations by opening (closing) every next Window in the previous Window's activate (deactivate) event.

http://docs.kendoui.com/api/web/window

http://demos.kendoui.com/web/window/events.html

Alternatively, you can try a witty hack - use appendTo to append all Window instances to a container element, which is absolutely positioned over all other page content and is hidden with visibility:hidden. When all Window instances have been created, animate and show their container. In this way you will be using a single animation (e.g. fade in/out) and performance should improve considerably.

http://docs.kendoui.com/api/web/window#configuration-appendTo

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jordon
Top achievements
Rank 1
answered on 18 Sep 2013, 03:56 PM
Thank you for the quick response.

Our site uses a Dashboard layout where each window represents a view of different information or actions where the user can customize where and how that information is displayed within those windows. We limit the number of 'widgets' to 15. So they aren't 'popups', they are draggable/resizable viewports.

Any way thank you for your answers. I am afraid I am not sure how to utilize the first option as they are in an array, and other windows may come or go at individual times later. I am also using Knockout to open/position/ and populate those windows, so I will have to do some digging to see how I could get that to do what I want.

As for the second option, that does seem feasible, unfortunately the basic fadeIn fadeOut looks a little boring. Could you detail the animation to do the default window close animation? 
0
Dimo
Telerik team
answered on 19 Sep 2013, 05:59 AM
Hello Jordon,

For the custom Window container you can use any jQuery animation that you like.

http://api.jquery.com/animate/

If you prefer using Kendo UI animations, please refer to our documentation and demos.

http://docs.kendoui.com/api/framework/fx/zoom

http://demos.kendoui.com/web/fx/zoom.html

A specific Window widget animation configuration can be made as well, although the discussed scenario does not imply doing that (however, you can disable Window animations):

http://docs.kendoui.com/api/web/window#configuration-animation

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Jordon
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Jordon
Top achievements
Rank 1
Share this question
or