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

[Solved] Formatting RadTextbox inside Edit Form

1 Answer 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RetoHell
Top achievements
Rank 1
RetoHell asked on 25 Aug 2009, 01:53 PM
Hi Telerik-Team

We've got the following scenario: a RadGrid with an EditForm Template inside. The EditForm contains several RadTextboxes, everything works fine.

Now we're trying to apply some custom css to the RadTextboxes inside the EditForm. We're working on this for several hours now but we still fail. Embeddedskins are turned off. Can you show us a simple way to achieve this? A small sample explaining how to set width/font et cetera of this nested textboxes would be very helpful. We're using 2008 Q2.

Thanks in advance!
Tom

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 25 Aug 2009, 03:07 PM
Hello Tom,

By design, the RadTextBoxes always have an inline width style applied. If you want to tweak these controls' widths with external CSS, you need to use the !important clause. Please refer to:

http://www.telerik.com/help/aspnet-ajax/input_appearancewidth.html

I recommend you to modify the CSS rules, shown in the help article, so that they influence only RadTextBoxes inside the RadGrid edit form. For example:

CSS

 .rgEditForm  .riTextBox
 {
   width: 50px  !important ;
 }



Regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
RetoHell
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or