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

"Selected" Context Menu Item Style

1 Answer 75 Views
Menu
This is a migrated thread and some comments may be shown as answers.
terrysmith
Top achievements
Rank 1
terrysmith asked on 21 Apr 2008, 08:15 PM
Before ASP.NET AJAX we added a custom style to the menu stylesheet in order to display a context menu item as selected. For example, if you have a "Sort Ascending" menu item that has been selected then we would change the background color of the icon on the menu item to a highlight color and then put a border around it.

This seems like a pretty common requirement to me. Is there any built-in way of doing this with the ASP.NET AJAX version? I have looked for it in the stylesheet but wanted to double-check to see if I overlooked something.


Thank you,
Terry

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 22 Apr 2008, 12:12 PM
Hi Terry,

You could use the CssClass property of the RadMenuItem to set a specific style to it. Attached is a small sample.

I hope this helps.

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Menu
Asked by
terrysmith
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or