RadTextBox Size !!!

3 posts, 1 answers
  1. Chris
    Chris avatar
    58 posts
    Member since:
    Feb 2012

    Posted 18 May 2012 Link to this post

    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. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 May 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chris
    Chris avatar
    58 posts
    Member since:
    Feb 2012

    Posted 18 May 2012 Link to this post

    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
Back to Top