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

UnSelect Menuitem

3 Answers 96 Views
Menu
This is a migrated thread and some comments may be shown as answers.
György
Top achievements
Rank 1
György asked on 05 Feb 2010, 04:41 PM
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.

3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 05 Feb 2010, 05:41 PM
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.
0
György
Top achievements
Rank 1
answered on 06 Feb 2010, 09:00 AM
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
0
Schlurk
Top achievements
Rank 2
answered on 08 Feb 2010, 12:37 PM
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).


Tags
Menu
Asked by
György
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
György
Top achievements
Rank 1
Share this question
or