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

Global dialog animation

1 Answer 61 Views
Dialog
This is a migrated thread and some comments may be shown as answers.
Valentin
Top achievements
Rank 1
Veteran
Valentin asked on 22 Feb 2021, 09:37 AM

Hi team,

I want every of my kendo dialog to open and close with the same animation. Is there a way to define it in a single place, instead of adding the configuration on every single dialog ?

 

Many thanks,

Valentin

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar
Telerik team
answered on 23 Feb 2021, 11:34 AM

Hi Valentin,

What you can do is to define the animation configuration for all the Dialogs in a variable that is accessible globally in your application.

Then you can use this configuration as it is demonstrated in this Dojo example. In this Dojo, there is the following definition:

      var globalAnimationConfig = {
        open: {
          effects: "fade:in"
        },
        close: {
          effects: "fade:out"
        }
      };

The above is passed to the animation configuration of the two Dialogs available in the linked project. 

I hope the suggested approach will help you implement what you need in your application.

Regards,
Petar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Dialog
Asked by
Valentin
Top achievements
Rank 1
Veteran
Answers by
Petar
Telerik team
Share this question
or