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

RadTextBox Size !!!

2 Answers 482 Views
Input
This is a migrated thread and some comments may be shown as answers.
Christophe
Top achievements
Rank 1
Christophe asked on 18 May 2012, 06:53 AM
Hi there,

Ok this might sounds pretty easy and shouldn't be such a pain to do but I'm struggling resizing a RadTextBox. I did something as simple as this :
<telerik:RadTextBox ID="rtbAddress" runat="server" Label="Address:" ToolTip="Search for an address" Width="300px" Columns="200">

And still, no way to change the size of the input neither to get the input next to its label... How come is this so difficult to achieve ?
All I need is a text box that match the radtextbox1.png and not the radtextbox2.png .

Plus when I remove the Width property to use the Columns property, the input simply disappears and all I see is the label ????

This is so simple that it is pissing me off. Please someone has any idea ?

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 18 May 2012, 07:39 AM
Hello Chris,

Try overriding the default CSS as shown below.
aspx:
<telerik:RadTextBox ID="rtbAddress" runat="server" Label="Address: " ToolTip="Search for an address"  Width="300px">
</telerik:RadTextBox>
CSS:
<style type="text/css">
   .riLabel
   {
       width: 50px !important;
   }
</style>

Thanks,
Shinu.
0
Christophe
Top achievements
Rank 1
answered on 18 May 2012, 08:01 AM
Thanks Shinu. It works perfectly. I don't know why I didn't think of that earlier. Now I just need to do the same thing for the text box as well.

Cheers mate ;)

Chris
Tags
Input
Asked by
Christophe
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Christophe
Top achievements
Rank 1
Share this question
or