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

Deactivate animations when changing ViewDefinitions

2 Answers 61 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Steffen
Top achievements
Rank 1
Veteran
Steffen asked on 28 Jan 2021, 03:01 PM

Hi,

I'm trying to migrate from RadScheduler to RadscheduleView and I'm on version 2012.1.326.40 right now.

Due to very heavy appointment templates I have to deactivate the animations when transitioning, because they hang for a long time even on the fastest machines.

This was easy to do, but somehow this stopped to work with 2012.1.

I tried without success:

    -Telerik.Windows.Controls.Animation.AnimationManager.IsGlobalAnimationEnabled = false;
    -Telerik.Windows.Controls.Animation.AnimationManager.SetIsAnimationEnabled(UIscheduler, false);
    -telerik:AnimationManager.IsAnimationEnabled="False"

How can I disable these animations?

Any help would be highly appreciated.

Best Regards

Steffen

2 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 02 Feb 2021, 10:56 AM

Hello Steffen,

Thank you for the shared information. 

The transitions between the different views are handled by the RadTransitionControl inside the ControlTemplate of the RadScheduleView. With this in mind, you can locate it via the ChildrenOfType extension method and set its Transition property to null. You can do that in the Loaded event of the RadScheduleView:

private void ScheduleView_Loaded(object sender, RoutedEventArgs e)
        {
            var scheduleView = sender as RadScheduleView;

            var transitionControl = scheduleView.ChildrenOfType<RadTransitionControl>().First();
            transitionControl.Transition = null;
        }

I hope you find this helpful.

Regards,
Vladimir Stoyanov
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/.

0
Steffen
Top achievements
Rank 1
Veteran
answered on 02 Feb 2021, 12:56 PM

Hello Vladimir,

thank you very much.

Works like a charm.

Best Regards

Steffen

Tags
ScheduleView
Asked by
Steffen
Top achievements
Rank 1
Veteran
Answers by
Vladimir Stoyanov
Telerik team
Steffen
Top achievements
Rank 1
Veteran
Share this question
or