Form decorator Issue

3 posts, 1 answers
  1. Gokul Gokul
    Gokul Gokul avatar
    17 posts
    Member since:
    May 2010

    Posted 29 Jul 2010 Link to this post

    I'm using same font names for my web pages, but the font names was not changing for decorated controls. How to change it?
  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    679 posts

    Posted 30 Jul 2010 Link to this post

    Hello Gokul,

    To set a font name different than those used in RadFromDecorator, you should use the following CSS code in the head section of your document:

    <style type="text/css">
    .RadForm.rfdTextbox input[type="text"],
    .RadForm.rfdTextbox input[type="password"],
    .RadForm.rfdTextarea textarea,
    .RadForm.rfdTextarea textarea[disabled]:hover,
    .RadForm.rfdTextbox input[disabled][type="text"]:hover,
    .RadForm.rfdTextbox input[disabled][type="password"]:hover,
    .RadForm .rfdCheckboxChecked,
    .RadForm .rfdInputDisabled.rfdCheckboxChecked:hover
    .RadForm .rfdCheckboxUnchecked,
    .RadForm .rfdInputDisabled.rfdCheckboxUnchecked:hover,
    .RadForm.rfdLabel label,
    .RadForm .rfdRadioUnchecked,
    .RadForm .rfdInputDisabled.rfdRadioUnchecked:hover,
    .RadForm .rfdRadioUnchecked:hover,
    .RadForm .rfdRadioChecked,
    .RadForm .rfdInputDisabled.rfdRadioChecked:hover,
    .RadForm .rfdRadioChecked:hover
    {
        font-family: "Trebuchet MS", "Lucida Grande", serif !important; /* replace it with font on your choice */
    }
    </style>

    Please, note the !important rule is used. It will prevent the fonts to be overwritten by the base style sheet rules.

    Telerik RadControls load firstly the CSS from the head section, next the skin specific styles and lastly the base stylesheet. If you have something in the head section, that you want to overwrite styles from the skin specific or base style sheet, you should use heavier selectors.

    Best wishes,
    Bojo
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Gokul Gokul
    Gokul Gokul avatar
    17 posts
    Member since:
    May 2010

    Posted 30 Jul 2010 Link to this post

    Thanx Bojo.
Back to Top