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

Removing HighlightPath

1 Answer 123 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 11 Sep 2018, 05:32 PM

Hi All,

 

Having an issue and maybe misunderstand implementation.  Hope you can help.

 

I am able to set HighlightPath procedurally for main-item and sub-item in RadMenu using code similar to below:

 

        Dim currentItem As RadMenuItem = RadMenu1.FindItemByText(LabelMainMenu.Text)
        If (Not (currentItem) Is Nothing) Then
            currentItem.HighlightPath()
        End If

 

 

 

However, I am unable to find a way to turn off HighlightPath for menu items.  Hence, every new menu item click is causing HighlightPath to accrue, sort of like a "visited" status link of a URL on an old HTML page (remember the purple color).

 

Sorry I digress. :)

 

I can loop through all menu items, but cannot find a property to turn off, i.e. there is no HighlightPath = false or similar.

I tried setting each item to Item.Items(j).Selected = False, but it does not turn off the highlight of the item.

Is there a global setting to reset all Highlights to nothing?  or Perhaps a way to remove HighlightPath option, then turn back on to reset all?

 

I am struggling to find a solution.

 

Regards,

A.

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 14 Sep 2018, 03:22 PM
Hi Anthony,

To be able to provide you with a more accurate answer, we would require additional details about the configuration. It would be helpful if you could share the markup of the menu and the code behind logic controlling it.

You may also check the Menu - Integration with BreadCrumb demo and see if the issue is reproducible.

Alternatively, you can try to Isolate the problem in a sample project and share it with us so that we can debug it locally.

Kind regards,
Attila Antal
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Menu
Asked by
Anthony
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or