How to Change font family to the RadTextbox as default

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

    Posted 28 Aug 2013 Link to this post

    Hi i want to change RadTextbox's font-family as Verdana.

    I done this to combobox item by applying css like below which can change font of combo items.
    .rcbItem
    {
    font-family:Verdana !important;
    }

    like this way i want to apply to radtextbox. i don't want to change / set attribute for each radtextbox in a page where more than 20 radtextboxes are there.

    Please help me out.
  2. Answer
    A2H
    A2H avatar
    177 posts
    Member since:
    Mar 2010

    Posted 28 Aug 2013 Link to this post

    Hi,
    Please use the below css to change the font style of RadTextbox
    <style type="text/css">
           .riTextBox
           {
               font-family: Verdana !important;
           }
       </style>


    As an alternative approach you can use the properties of textbox
    <telerik:RadTextBox ID="RadTextBox1" runat="server" Skin="Hay" Width="300" AutoPostBack="false" Font-Names="Verdana">
           </telerik:RadTextBox>
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vishnu
    Vishnu avatar
    31 posts
    Member since:
    Jul 2012

    Posted 29 Aug 2013 Link to this post

    Hi A2H,
    its working fine. Thanks a lot. you saved my lot of time. 
    Can you please tell me, how to apply the same trick to Button as well.

  5. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Aug 2013 Link to this post

    Hi Vishnu,

    Try overriding the default CSS as follows.

    CSS:
    <style type="text/css">
        .RadButton_Default .rbDecorated
        {
            font-family: Arial Black !important;
        }
    </style>

    Thanks,
    Shinu.
Back to Top