disable animation for menu

4 posts, 0 answers
  1. Robert Stoppel
    Robert Stoppel avatar
    2 posts
    Member since:
    Mar 2009

    Posted 24 May 2013 Link to this post

    how can I do this for menu below

      <telerik:RadMenu ID="RadMenu1"  DataNavigateUrlField="m_url"  
                      DataTextField="m_text"  DataFieldID="m_id" DataFieldParentID="p_mid" 
                      DataValueField="m_value" Runat="server" 
                      EnableEmbeddedSkins="false" Skin="Green">                  
                </telerik:RadMenu>
  2. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 27 May 2013 Link to this post

    Hello.

    As described in the help article about animations here -- http://www.telerik.com/help/aspnet-ajax/menu-appearance-animations.html -- all you need to do is set the properties either inline or with child elements e.g.:

    Inline
    <telerik:RadMenu runat="server" ExpandAnimation-Type="None" CollapseAnimation-Type="None"></telerik:RadMenu>

    As child elements
    <telerik:RadMenu ID="RadMenu1" runat="server">
        <ExpandAnimation Type="OutQuart" Duration="300" />
        <CollapseAnimation Type="OutQuint" Duration="200" />
    </telerik:RadMenu>


    Regards,
    Ivan Zhekov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Robert Stoppel
    Robert Stoppel avatar
    2 posts
    Member since:
    Mar 2009

    Posted 28 May 2013 Link to this post

    can I put duration "0" ? or do I have to keep it in "300" and "200" 
  5. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 29 May 2013 Link to this post

    Hi, Darryl.

    Of course you can. I am correcting my snippet, as I pasted the wrong piece of code:

    <telerik:RadMenu ID="RadMenu1" runat="server">
        <ExpandAnimation Type="None" />
        <CollapseAnimation Type="None" />
    </telerik:RadMenu>
     
    <telerik:RadMenu ID="RadMenu1" runat="server">
        <ExpandAnimation Duration="0" />
        <CollapseAnimation Duration="0" />
    </telerik:RadMenu>

    You can either set the duration to 0 or the type to None.

    Regards,
    Ivan Zhekov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top