All Products
Demos
Pricing
Services
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX Forum
/
Menu
/
"Selected" Context Menu Item Style
Cancel
Telerik UI for ASP.NET AJAX
Resources
Buy
Try
Feed for this thread
2 posts, 0 answers
terrysmith
131 posts
Member since:
Nov 2006
Posted 21 Apr 2008
Link to this post
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
Erjan Gavalji
Admin
1455 posts
Posted 22 Apr 2008
Link to this post
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
ContextMenuSelectedItemStyle.zip
Back to Top
Close