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

RadMenu Backcolor

4 Answers 464 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Missing User
Missing User asked on 07 May 2013, 04:06 PM
I've just read a thread on how to change the back color of a menu item in a Windows app but how do you do it in a Web application?

If I select the control in the designer I just get Edit Templates or Edit Items and the Skin is set to default.

I can alter the items okay I just can't alter the background color of the actual bar itself.  It always ends up being the dark silvery color!

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 May 2013, 08:51 AM
Hi Brent,

I guess you need to change the background-color of the RadMenu Item. Please override the default CSS as follows.

CSS:
<style type="text/css">
    .RadMenu .rmText
    {
        background-color: Yellow !important;
    }
</style>

Thanks,
Shinu.
0
Missing User
answered on 08 May 2013, 09:01 AM
oh no that is way too easy.

What I want to change is the actual background that the items sit on.

That lovely silvery-gray bar on the attached png, that's what I want to change and at the moment the only way I can find to change it is by choosing a skin!
0
Boyan Dimitrov
Telerik team
answered on 10 May 2013, 06:22 AM
Hello,

Since the background color of the RadMenu control is loaded from a sprite image that comes with our resource file, I would suggest to using the following workaround:
//css
<style type="text/css">
        html .RadMenu .rmRootGroup {
            background-image: none;
        }
 
        html .RadMenu ul.rmRootGroup {
            background-color: yellow;
        }
    </style>

The code snippet above will stop loading the default image for your RadMenu background color and will override it with a yellow color.

Kind regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Missing User
answered on 10 May 2013, 09:29 AM
That's the one...and actually I had a look at the source code in the browser and it all became obvious.

Much appreciated.  Good choice of color though...I like yellow!
Tags
Menu
Asked by
Missing User
Answers by
Shinu
Top achievements
Rank 2
Missing User
Boyan Dimitrov
Telerik team
Share this question
or