List box CSS , How to change ??

5 posts, 1 answers
  1. arijit
    arijit avatar
    49 posts
    Member since:
    Jun 2012

    Posted 05 Feb 2010 Link to this post

    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
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Feb 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. arijit
    arijit avatar
    49 posts
    Member since:
    Jun 2012

    Posted 05 Feb 2010 Link to this post

    You are great
    Thank you.
  5. arijit
    arijit avatar
    49 posts
    Member since:
    Jun 2012

    Posted 05 Feb 2010 Link to this post

    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

     

     

     

     

     

     

  6. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 09 Feb 2010 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017