Removing HighlightPath

2 posts, 0 answers
  1. Anthony
    Anthony avatar
    1 posts
    Member since:
    Sep 2018

    Posted 11 Sep 2018 Link to this post

    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.

  2. Attila Antal
    Admin
    Attila Antal avatar
    320 posts

    Posted 14 Sep 2018 Link to this post

    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.
Back to Top