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

Menu t-hover-state

4 Answers 49 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.
Doug
Top achievements
Rank 1
Doug asked on 20 Feb 2010, 07:42 PM
When I use the .action method the menu renders with t-hover-state assigned to the class of the root menu node

If I remove the .Action("...") the menu renders correctly.


                Html.Telerik().Menu().Name("myMenu").Items(
                    item =>
                    {
                        item.Add()
                            .Text("Company Rules")
                            .ImageUrl("~/Content/Common/Icons/Suites/mvc.png")
                            .Items(it =>
                            {
                                it.Add().Text("Earnings").Action("Index", "Earning");                                
                                it.Add().Text("Grid");
                                it.Add().Text("Menu");
                                it.Add().Text("PanelBar");
                                it.Add().Text("TabStrip");
                            });

4 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 22 Feb 2010, 09:01 AM
Hi Doug,

You can remove the style by calling .HighlightPath(false) on the menu.

The t-hover-state is rendered because the menu highlights the selected path by default. We reused the class name, yet it isn't very intuitive - we'll probably introduce a new one for the official release.

Regards,
Alex Gyoshev
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.
0
Doug
Top achievements
Rank 1
answered on 22 Feb 2010, 02:41 PM
I appreciate the quick response and active forum but do take issue with the response.

The reason for the conflict is $.telerik.hover operates on this class tag. I did my own work around but it makes it difficult to use the built in functionality, is in conflict with other answers you've posted and forces me to manually configure the style sheets as the css that VSB creates is now inaccurate. Quite honestly it's a bug.
0
Alex Gyoshev
Telerik team
answered on 22 Feb 2010, 03:01 PM
Hello Doug,

I didn't quite understand your point from the previous post. I don't argue that the current behavior is correct - I just explained what was the reasoning behind it. The issue will be fixed for the official release - until then, you can set the HighlightPath to false.

All the best,
Alex Gyoshev
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.
0
Doug
Top achievements
Rank 1
answered on 22 Feb 2010, 03:15 PM
Alex, you are correct. I just want to add to the forums as they seem to be the best source of documentation at the moment.
Tags
Menu
Asked by
Doug
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Doug
Top achievements
Rank 1
Share this question
or