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

Need to Change Font Names / Font Family for All Items in RadComboBox

5 Answers 492 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Vishnu
Top achievements
Rank 1
Vishnu asked on 14 Aug 2013, 06:49 AM
Hi. I tried to change the Font Family / Font Names of items in RadComboBox, its not working for me. I applied css too.

<style type="text/css">
.RadComboBox_Vista .rcbInputCell .rcbInput, .RadComboBoxDropDown_Vista
        {
            font-family: Verdana !important;
        }
</style>
 
<telerik:RadComboBox ID="ddlCultureCode" runat="server"  OnSelectedIndexChanged="ddlCultureCode_SelectedIndexChanged" AutoPostBack="true" EnableViewState="true"> </telerik:RadComboBox>

Can any one suggest me, how to implement & achieve it.
Thanks in advance.

5 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 14 Aug 2013, 08:50 AM
Hi Vishnu,

Please have a look at the following code snippet that I have tried.

ASPX:
<telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="true" EnableViewState="true">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="Item1" />
        <telerik:RadComboBoxItem runat="server" Text="Item2" />
        <telerik:RadComboBoxItem runat="server" Text="Item3" />
        <telerik:RadComboBoxItem runat="server" Text="Item4" />
        <telerik:RadComboBoxItem runat="server" Text="Item5" />
    </Items>
</telerik:RadComboBox>

CSS:
<style type="text/css">
    .rcbItem
    {
        font-family: Verdana !important;
        color: Green !important;
    }
</style>

Suppose you want to style the selected item, you can try the following CSS.

CSS:
.rcbInput
{
    color: Red !important;
    font-weight: bold !important;
}

Thanks,
Shinu.
0
Vishnu
Top achievements
Rank 1
answered on 14 Aug 2013, 11:32 AM
Yes, its working fine.. Thanks a lot.... :)
0
Merin
Top achievements
Rank 1
answered on 20 Aug 2013, 08:36 AM
Hi shinu

In the css you provided, the default style is retained on hovering items. How to avoid it?
0
Accepted
Shinu
Top achievements
Rank 2
answered on 20 Aug 2013, 08:56 AM
Hi Merin,

Try the following CSS along with the CSS classes provided in my previous post.

CSS:
.rcbHovered
{
    font-family: Verdana !important;
    color: Green !important;
}

Thanks,
Shinu.
0
Merin
Top achievements
Rank 1
answered on 23 Aug 2013, 08:38 AM
Hi shinu

I have a radcombobox with load on demand. Can  I programatically initiate a load on demand request on click of a radbutton?
Tags
ComboBox
Asked by
Vishnu
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Vishnu
Top achievements
Rank 1
Merin
Top achievements
Rank 1
Share this question
or