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

6 posts, 2 answers
  1. Vishnu
    Vishnu avatar
    31 posts
    Member since:
    Jul 2012

    Posted 14 Aug 2013 Link to this post

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

    Posted 14 Aug 2013 Link to this post

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

    Posted 14 Aug 2013 Link to this post

    Yes, its working fine.. Thanks a lot.... :)
  5. Merin
    Merin avatar
    14 posts
    Member since:
    Jul 2013

    Posted 20 Aug 2013 Link to this post

    Hi shinu

    In the css you provided, the default style is retained on hovering items. How to avoid it?
  6. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Aug 2013 Link to this post

    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.
  7. Merin
    Merin avatar
    14 posts
    Member since:
    Jul 2013

    Posted 23 Aug 2013 Link to this post

    Hi shinu

    I have a radcombobox with load on demand. Can  I programatically initiate a load on demand request on click of a radbutton?
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017