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

[Solved] Menu without animation

2 Answers 28 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ørjan
Top achievements
Rank 1
Ørjan asked on 03 Jan 2012, 01:38 PM
We are using the Telerik Menu controller with 2 levels. By default these are nicely layed out with an animation that expands the submenu when the parent element is hovered. However, we'd like the submenu items to always be expanded. Styling the menu such that the sub menus are nicely integrated in the menu is okay, but the problem is that the javascript still will toggle display: none/block on hover. Can this be disabled? 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 04 Jan 2012, 09:45 AM
Hello Ørjan,

In order to achieve the desired behavior, you need to disable the Menu animation with:

Html.Telerik().Menu()
.Effects(fx => fx.Toggle())

This will prevent the subitems' shadow from disappearing.

Next, please add the following CSS rule:

.t-menu  .t-animation-container,
.t-menu  .t-group
{
     display: block !important;
     margin: 0 !important;
}

You can also use the Menu's ID instead of the t-menu CSS class.


Regards,
Dimo
the Telerik team
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Ørjan
Top achievements
Rank 1
answered on 04 Jan 2012, 11:21 PM
Excellent! This worked perfectly. 

Thank you very much for the help.
Tags
Menu
Asked by
Ørjan
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Ørjan
Top achievements
Rank 1
Share this question
or