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

global disable animations

4 Answers 276 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Denis
Top achievements
Rank 1
Denis asked on 20 Jun 2012, 04:12 PM
Hello! I want to global disable animation (dropdown/combobox sliding, window popup fading and so on).
How I can do it with minimum code? Is KendoUI have global flag for this?

Thanks alot! You made a beautiful framework with amazing cross-platform capabilities! :)

4 Answers, 1 is accepted

Sort by
0
Accepted
Kamen Bundev
Telerik team
answered on 21 Jun 2012, 02:44 PM
Hi Denis,

If you don't load the FX javascript file (kendo.fx.min.js), the animations will be automatically disabled.

Kind regards,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kasey
Top achievements
Rank 1
answered on 12 Dec 2012, 06:59 PM
Is there a way to disable animations if you are loading kendo.web.min.js? For instance, could I just set kendo.fx to undefined? I'd like to disable them only for IE <9. I'm using a lot of the framework, and it doesn't make sense to load all the other files individually.
0
Petyo
Telerik team
answered on 18 Dec 2012, 08:04 AM
Hello,

I am afraid that such approach would not work, as the design of our framework relies on kendo.fx having simpler implementation (present in kendo.core) and a more complex one that handles the animations (in kendo.fx). 

Something which I may suggest is to set the animation duration to zero, in certain cases (IE, for example). 

All the best,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kasey
Top achievements
Rank 1
answered on 18 Dec 2012, 05:07 PM
I ended up just getting a custom download of Kendo Web without the animation. Then I used conditional comments to include the full version or no-animation version depending on IE version. I don't really like this, but it works.

What I'd like is something like jQuery does:

$.fx.off = true; // globally disable jQuery animations
Tags
General Discussions
Asked by
Denis
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Kasey
Top achievements
Rank 1
Petyo
Telerik team
Share this question
or