"Selected" Context Menu Item Style

2 posts, 0 answers
  1. terrysmith
    terrysmith avatar
    129 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
  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    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
Back to Top