UnSelect Menuitem

4 posts, 0 answers
  1. György
    György avatar
    7 posts
    Member since:
    Jan 2009

    Posted 05 Feb 2010 Link to this post

    Hi All,

    I have a RadMenu control on my page. After I select a menuitem (triggerd the OnClientItemClicked event), the menuitem remain selected when I move the pointer away. How can I unselect the item to display it it's normal (not selected) style?

    Thanks.
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 05 Feb 2010 Link to this post

    I would recommend setting up the CSS so that selected items have the same style as regular items. Then only hovering over or hovering away from the menu item will change the look o the menu. You can see how to do this in the Creating A Custom Skin documentation article along with the other articles found under the Appearance section.
  3. György
    György avatar
    7 posts
    Member since:
    Jan 2009

    Posted 06 Feb 2010 Link to this post

    Hi Schlurk,

    Thanks for the answer.
    My application has a function, that the user can change the skin of the application by choosing from the bulit in skins. Is there a simple way to replace every built in skin's rmFocused style to the regular items style?

    Thanks
  4. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 08 Feb 2010 Link to this post

    I'm not sure what your regular item's style is but here's the CSS required to over-ride all RadMenu's .rmFocused:

        <style type="text/css"
        .RadMenu .rmFocused, 
        { 
            background-imagenone !important; 
            background-color: Green !important; 
        } 
        </style> 

    As you can see the second line (background-color) simply just makes the RadMenu green whenever an item is Focused (clicked on).


Back to Top