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

Highlight Selected Rad Menu Item

4 Answers 186 Views
Navigation
This is a migrated thread and some comments may be shown as answers.
Mahesh
Top achievements
Rank 1
Mahesh asked on 16 Nov 2012, 11:34 AM
Hi,
I want to Highlight the selected Rad Menu item from my menu. But i'm unable to highlight it. I have added 'checked' Visual State in NavBarTopLevelItemTemplate but still not help. Any help on how to highlight the selected menu item?

 

 

4 Answers, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 19 Nov 2012, 07:10 AM
Hi Mahesh,

Your code looks fine - I prepared a simple example with it and the SelectedItem is highlighted in Green. I'm attaching it for your reference. Maybe you are setting the IsCheckable value to false for the TopLevelItems and it is preventing the "Checked" and "Unchecked" state.

Please check the attachment and inform me if you still have problems with your application.

Kind regards,
Rosen Vladimirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Mahesh
Top achievements
Rank 1
answered on 22 Nov 2012, 06:14 AM
Hi Rosen,
        Thanks for your response. The solution provided by you is working partially.
Initially it's highlighting the selected item, but when i move my mouse over the Selected item it's triggering Highlighted Visual State and on mouse leave it's coming to normal state even though my menu item is still in selected state. Is there a way to keep it in Checked state even after mouse leave event?
Regards,
Mahesh.
0
Accepted
Rosen Vladimirov
Telerik team
answered on 22 Nov 2012, 04:34 PM
Hi Mahesh,

You cannot modify the same property in two different VisualStateGroups. That's why I've modified your project and now when an item is checked the background will be Green. If the items is highlighted, the foreground will be red.

Please check the attached project and inform me if you still have any concerns.

Greetings,
Rosen Vladimirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Mahesh
Top achievements
Rank 1
answered on 23 Nov 2012, 06:55 AM
Hi Rosen,
    Thnx for the solution. It's works the way i'm expecting.
Regards,
Mahesh.
Tags
Navigation
Asked by
Mahesh
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Mahesh
Top achievements
Rank 1
Share this question
or