This is a migrated thread and some comments may be shown as answers.

RadTextBox does not work with Blueprint CSS Framework

3 Answers 87 Views
Input
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 27 Mar 2009, 06:39 PM
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

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 31 Mar 2009, 08:28 AM
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.
0
Robert
Top achievements
Rank 1
answered on 31 Mar 2009, 06:57 PM
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"/> 

0
Dimo
Telerik team
answered on 01 Apr 2009, 08:24 AM
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.
Tags
Input
Asked by
Robert
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Robert
Top achievements
Rank 1
Share this question
or