expand/collapse of the HorizontalMenuDropDown

Posted by Community Admin on 04-Aug-2018 00:35

expand/collapse of the HorizontalMenuDropDown

All Replies

Posted by Community Admin on 18-Feb-2012 00:00

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?

Posted by Community Admin on 21-Feb-2012 00:00

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

This thread is closed