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

Change the selection color of combobox items

3 Answers 267 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Savyo
Top achievements
Rank 1
Savyo asked on 08 Apr 2013, 01:17 PM
Hi
     How to change the selection color of items in combobox inside itemtemplate of radgrid. Please suggest a solution
thanks
Savyo

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Apr 2013, 01:33 PM
Hi Savyo,

Try overriding the default CSS as follows.

CSS:
<style type="text/css">
    .RadComboBoxDropDown_Default .rcbHovered
    {
        background: Red !important;
    }
</style>

Thanks,
Princy.
0
Savyo
Top achievements
Rank 1
answered on 12 Apr 2013, 12:43 PM
Hi
    thanks for the reply. But you got me wrong i presume. I wanted to change the color of the selected item rather than the item on hover. If it would not be a huge trouble please reply with a better solution. thanks again
Savyo
0
Princy
Top achievements
Rank 2
answered on 12 Apr 2013, 01:01 PM
Hi,

Try adding the InputCssClass property of the RadComboBox as follows.

ASPX:
<telerik:RadComboBox ID="radCombo1" runat="server" InputCssClass="Example">
.     .    .

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

Thanks,
Princy.
Tags
Grid
Asked by
Savyo
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Savyo
Top achievements
Rank 1
Share this question
or