RadTextBox does not work with Blueprint CSS Framework

4 posts, 0 answers
  1. Robert
    Robert avatar
    19 posts
    Member since:
    Feb 2009

    Posted 27 Mar 2009 Link to this post

    If I put a RadTextBox control on a page which has the Blueprint CSS framework attached the textbox does not take on the proper style. The standard asp.net textbox and regular HTML input controls work perfectly. It seems that the RadTextBox is adding additional css styling which is interfering.

    Robert
  2. Dimo
    Admin
    Dimo avatar
    8452 posts

    Posted 31 Mar 2009 Link to this post

    Hello Robert,

    RadTextBox (as all other RadControls) by default uses a Skin, which determines its appearance. If you want to use a CSS framework to apply styles to RadTextBoxes, then set an empty skin :

    <telerik:RadTextBox  runat="server"  Skin=""  />

    Greetings,
    Dimo
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. Robert
    Robert avatar
    19 posts
    Member since:
    Feb 2009

    Posted 31 Mar 2009 Link to this post

    Thanks. But what's not helpful in this situation is that the control is still injecting styles into the page. It is setting the width of the textbox which is not what I want. I know it can easily be overridden but can you explain why it is doing this?

    This is what I see generated from the control ("title" class is added by me)
    <input type="text" style="width: 125px;" class="riTextBox riEnabled title" name="RadTextBox2_text" id="RadTextBox2_text" size="20"/> 

  4. Dimo
    Admin
    Dimo avatar
    8452 posts

    Posted 01 Apr 2009 Link to this post

    Hi Robert,

    All RadInput controls have a default width by design. It is needed in order to ensure consistent width for all types of textboxes in their different rendering modes (which depend on the enabled functionality, e.g. buttons and labels).

    Sincerely yours,
    Dimo
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top