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

RadMenu not highlighting parent menu

1 Answer 108 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Amer
Top achievements
Rank 1
Amer asked on 14 Aug 2017, 09:07 AM

I want to highlight the parent menu item on selecting the child menu item. I have written the script written in the examples, but the FindItemByUrl returns empty don't know why.

Here is the script.

   Dim currentItem As RadMenuItem = RadMenu1.FindItemByUrl(Request.Url.PathAndQuery)

        If currentItem IsNot Nothing Then
            'Select the current item and his parents
            currentItem.HighlightPath()
         
        Else
            RadMenu1.Items(0).HighlightPath()
        End If

1 Answer, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 17 Aug 2017, 10:51 AM
Hi Amer,

You can find a working demonstration of this approach in the following live sample:
http://demos.telerik.com/aspnet-ajax/menu/examples/programming/showpath/defaultcs.aspx?Page=Purchase%20Orders

And you can check the code snippets provided here:
http://docs.telerik.com/devtools/aspnet-ajax/controls/menu/how-to/showing-the-path-to-an-item

You can create a new web site sample with these solutions and use it as a base reference to compare with your original project.

Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Menu
Asked by
Amer
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or