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

Disable animations on RadComboBox and other controls

2 Answers 244 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Björn
Top achievements
Rank 2
Björn asked on 22 May 2013, 12:54 PM
Hi,

I need to disable expand/collapse animations on RadComboBoxes, GridViewFiltering popups etc, because it disturbs the end user.

Using of telerik:AnimationManager.IsAnimationEnabled="False" (on a single control) or AnimationManager.IsGlobalAnimationEnabled = false (globally) have no effect.

The application uses implicit themes.

Thank you for any help.

Björn

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 27 May 2013, 04:10 PM
Hello,

The animation of the ComboBox comes from the Microsoft's Popup control. So, in order to disable it, you need to find it and set its PopupAnimation property to None, for example:

this.myComboBox.Loaded += (s, e) =>
            {
                var popup = this.myComboBox.Template.FindName("PART_Popup", this.myComboBox) as System.Windows.Controls.Primitives.Popup;
  
                popup.PopupAnimation = System.Windows.Controls.Primitives.PopupAnimation.None;
            };


Regards,
Konstantina
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Björn
Top achievements
Rank 2
answered on 29 May 2013, 04:56 AM
Thank you, that's exactly the solution I need.
Tags
ComboBox
Asked by
Björn
Top achievements
Rank 2
Answers by
Konstantina
Telerik team
Björn
Top achievements
Rank 2
Share this question
or