1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / expand/collapse of the HorizontalMenuDropDown

expand/collapse of the HorizontalMenuDropDown

2 posts, 0 answered
  1. AlphaZeta
    AlphaZeta avatar
    14 posts
    Registered:
    06 Jun 2006
    18 Feb 2012
    Link to this post
    i'm trying to set duration for the expand/collapse of the HorizontalMenuDropDown and the parameters we use seem to have no effect, do you know of any way to slow down the expand/collapse of this control?
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    18 Sep 2017
    21 Feb 2012
    Link to this post
    Hi,

     HorizontalMenuDropDown menu is using RadMenu to render the navigation. To change the speed at which the menu collapses and expands refer to this RadMenu documentation. There is no direct way to modify the built in navigation template to add the needed properties to control the animation speed 

    <telerik:RadMenu ID="RadMenu1" runat="server">
        <ExpandAnimation Type="OutQuart" Duration="300" />
        <CollapseAnimation Type="OutQuint" Duration="200" />
    </telerik:RadMenu>
    so the solution is to create a custom navigation control using RadMenu where the animation properties can be added.
    <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.NavigationControls" TagPrefix="sfMap" %>
    <sfMap:SitefinitySiteMapDataSource ID="SM" runat="server" ShowStartingNode="false" />
    <telerik:RadMenu runat="server" ID="menu" DataSourceID="SM" Flow="Vertical"></telerik:RadMenu>
    Bind the RadMenu to SitefinitySitemapDataSource. Then register a new navigation widget with this control as described here.Regards,
    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered