Disabling application menu animation

4 posts, 0 answers
  1. Nhan Rao
    Nhan Rao avatar
    7 posts
    Member since:
    Sep 2009

    Posted 04 Jan 2010 Link to this post

    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;
  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 05 Jan 2010 Link to this post

    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.

    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.
  3. James@Nw
    James@Nw avatar
    13 posts
    Member since:
    May 2009

    Posted 14 Sep 2010 Link to this post

    Hi Nikolay,

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

  4. Stefan
    Stefan avatar
    2906 posts

    Posted 20 Sep 2010 Link to this post

    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()
            this.radMenuItem4.DropDown.FadeAnimationType = Telerik.WinControls.UI.FadeAnimationType.None;

    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
Back to Top