How to change selected item backcolor

4 posts, 0 answers
  1. Ed Staffin
    Ed Staffin avatar
    66 posts
    Member since:
    Nov 2008

    Posted 13 Aug 2010 Link to this post

    Hi,
    I am using a RadListbox and I have set the skin to windows 7. However, I would also like to separtely set the backcolor of the selected item to a particular color. How can I do this?
    Thanks ... Ed
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 13 Aug 2010 Link to this post

    Hello,


    Add the folowing style on page and see whether it helps.

    Style:
    .RadListBox_Windows7 .rlbSelected
         {
             background-color: Green !important;
         }


    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ed Staffin
    Ed Staffin avatar
    66 posts
    Member since:
    Nov 2008

    Posted 13 Aug 2010 Link to this post

    Hi,
    Thanks for the response. However, it doesn't seem to do anything. I added the snippet you suggested to the head section, but the selected item in the listbox still is the windows 7 blue. Do I need to change the tag somehow?
    Thanks ... Ed
  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 19 Aug 2010 Link to this post

    Hi Ed Staffin,

    You can use the BackColor property provided by the RadListBoxItem class.

    Regards,
    Genady Sergeev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top