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

List box CSS , How to change ??

4 Answers 262 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
arijit
Top achievements
Rank 1
arijit asked on 05 Feb 2010, 07:21 AM
Hi,
I just want to change the listbox selected color and hover color, how can I change that ?
i tried searching but didn't find anything
Please help, its urjent
Regards
Arijit

4 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 05 Feb 2010, 09:50 AM
Hi Arijit,

Add the following CSS for customizing the hovered and selected style.

CSS:
 
    <style type="text/css"
        .rlbHovered 
        {            
            background-color: Green !important; 
        } 
        .rlbSelected 
        { 
            background-color: Red !important; 
        }         
    </style> 

-Shinu.
0
arijit
Top achievements
Rank 1
answered on 05 Feb 2010, 09:53 AM
You are great
Thank you.
0
arijit
Top achievements
Rank 1
answered on 05 Feb 2010, 11:01 AM
but if  i put some color like 

 

 

 

<style type="text/css">    
        .rlbHovered    
        {               
            background-color: Green !important;    
        }    
             
        .rlbSelected  
        {    
            background-color: Red !important;    
            color: Black !important;    
        }       
</style>  

It is not working, the font color is not changing, please help
regards

 

 

 

 

 

 

0
Veselin Vasilev
Telerik team
answered on 09 Feb 2010, 09:13 AM
Hi arijit,

To override the color of the selected listbox item please use the following css rule:

div.RadListBox .rlbSelected .rlbText
{   
    color: Blue;   
}

This will increase the specificity of the rule and it will be applied.

I hope that this blog post will shed some light:
How To Override Styles in a RadControl for ASP.NET AJAX' Embedded Skin

Kind regards,
Veskoni
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
ListBox
Asked by
arijit
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
arijit
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or