Rad Numeric TextBox value's font changes to Bold

2 posts, 1 answers
  1. Jiju
    Jiju avatar
    57 posts
    Member since:
    Jul 2011

    Posted 25 Apr 2012 Link to this post

    Hi,
    When i enter a value in rad numeric text box in my site page, it display in normal font, and when changes the focus from this control, it's font changes to bold.
    In my css class, in order to change the font weight of span to bold, i have declared as below
    span
     {
        font-family:Verdana;
        font-size:8pt;    
        font-weight:bold;
     }
    when changing the font-weight to normal, the numeric text box's value doesn't changes to bold when focus lost.
    ( but the font weight can't be changed to normal since it is mandatory for all span in the site.)
    how can we fix this issue?


    Thanks
    jiju
  2. Answer
    Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 30 Apr 2012 Link to this post

    Hello jiju,

    See this help topic about the HTML output of the RadInput control:
    http://www.telerik.com/help/aspnet-ajax/input-single-rendering-output-css-styling.html
    I can suggest you two options to resolve the issue:
    • Set style for all spans with riDisplay class to have normal weight.
    • Set EnableSingleInputRendering="false" to use the old rendering, that does not show span over the input.

    Greetings,
    Vasil
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

Back to Top