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

Highlight Main Menu Item on Selection of Sub Menu Item

1 Answer 76 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Lakhani
Top achievements
Rank 1
Lakhani asked on 25 Oct 2012, 05:51 AM
I want to show Selected Main Menu Item also if any Sub Menu Item is selected. e.g. we have menu Items are

Main-1
    Sub-1
    Sub-2
    Sub-3
Main-2
    Sub-1
    Sub-2

and so on...

Now whenever user selects Sub-2 of Main-1 Menu then Sub-2 and Main-1 should be shown in different background color or with different style. So how can we do this in Kendo Menu?

Thanks

Anil Lakhani

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 03 Nov 2012, 04:58 PM
Hello,

There is not any built-in functionality to support this in the control, however, you can use JavaScript/jQuery to assign the appropriate CSS class to the menu item that corresponds to the current page. 

Thanks,
Jayesh Goyani
Tags
Menu
Asked by
Lakhani
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or