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

Disabling application menu animation

3 Answers 103 Views
ApplicationMenu
This is a migrated thread and some comments may be shown as answers.
Nhan Rao
Top achievements
Rank 1
Nhan Rao asked on 04 Jan 2010, 08:39 PM
Is there any way to disable the animation for all submenus in an application menu?   I can't find anything in the theme builder or while editing the UI elements.  In the menu animations demo there's a DropDownAnimationEnabled property, but that doesn't seem to exist anymore.   I tried the following code, and it didn't work:

RadApplicationMenuDropDown ddForm = this.radApplicationMenu1.DropDownButtonElement.DropDownMenu as RadApplicationMenuDropDown;
ddForm.FadeAnimationType = FadeAnimationType.None;

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 05 Jan 2010, 03:25 PM
Hi Nhan Rao,

Currently, there is no main animation property which is respected by all sub-menus. Instead, you need to set the animation settings to each sub-menu individually. If you, for example, have a sub-menu opened from RadMenuItem1, consider using the following code snippet:
this.radMenuItem1.DropDown.FadeAnimationType = Telerik.WinControls.UI.FadeAnimationType.None;

I hope this helps. If you have additional questions, feel free to contact me.

Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James@Nw
Top achievements
Rank 2
answered on 14 Sep 2010, 04:01 PM
Hi Nikolay,

Can you please tell me how I would add this code snippet of yours and where?

Thanks,
James
0
Stefan
Telerik team
answered on 20 Sep 2010, 09:58 AM
Hi James,

Thank you for writing.

Please refer to the attached screenshot for more details on this case. In my example one of my main menu items with text "MainMenu2" is named radMenuItem4. In order to remove the animation for it and off of it submenus, I am using the following code:
 
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
        this.radMenuItem4.DropDown.FadeAnimationType = Telerik.WinControls.UI.FadeAnimationType.None;
    }
}

 
Regards,
Stefan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ApplicationMenu
Asked by
Nhan Rao
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
James@Nw
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or