width of textbox control

3 posts, 0 answers
  1. Abhisek Shukla
    Abhisek Shukla avatar
    23 posts
    Member since:
    Oct 2006

    Posted 13 Sep 2007 Link to this post

    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. Angel
    Angel avatar
    121 posts

    Posted 15 Sep 2007 Link to this post

    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,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Abhisek Shukla
    Abhisek Shukla avatar
    23 posts
    Member since:
    Oct 2006

    Posted 17 Sep 2007 Link to this post

    Hello Angel,
       I did as u said, now prob is solved of width

    Abhisek Shukla
Back to Top