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

width of textbox control

2 Answers 178 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Abhisek Shukla
Top achievements
Rank 1
Abhisek Shukla asked on 13 Sep 2007, 10:13 AM
On expanding width of textbox control the backgroud of textbox appears white but when we run the application only for certain width it shows white after that control color appears....how to solve this problem...same happens in height case

2 Answers, 1 is accepted

Sort by
0
Angel
Telerik team
answered on 15 Sep 2007, 02:41 PM
Hi Abhisek Shukla,

Thank you for contacting us with this question.

If the RadTextBox is used with Multiline = false (the default value) the text area can be stretched horizontally but its height is automatically calculated based on the Font property.

When AutoSize is set to true (default value) the only sizable direction is the horizontal one. If you need additional control over the height of the RadTextBox you can use top and bottom Padding. When AutoSize is false the control can be sized both horizontally and vertically.

The difference between these two approaches is that when AutoSize is true the height of the textbox is calculated automatically as previously described and if a bigger Font is used the textbox will become higher.

Regardless of which of the two approaches described above you use to set a bigger size, you will see a gradient in the area that is not filled with text. If you need a solid white color choose "Edit UI elements" from the ActionList, select FillPrimitive from the element tree on the left and set the GradientStyle property to Solid.

You should not see different colors in horizontal direction (except for the border) - the entire width of the control should be filled by the textbox. If you do so - please send us a project reproducing this behavior.

Thank you for contacting us with this issue. It's very important for us to make sure you're able to use our controls with the least amount of effort and to your greatest satisfaction, and receiving feedback from you greatly helps us focus our efforts. Please, contact us with any other concerns you might have.

Best wishes,
Angel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Abhisek Shukla
Top achievements
Rank 1
answered on 17 Sep 2007, 10:29 AM
Hello Angel,
   I did as u said, now prob is solved of width

Abhisek Shukla
Tags
TextBox
Asked by
Abhisek Shukla
Top achievements
Rank 1
Answers by
Angel
Telerik team
Abhisek Shukla
Top achievements
Rank 1
Share this question
or