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

TextBox and overflow

1 Answer 216 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Olof Petterson
Top achievements
Rank 1
Olof Petterson asked on 14 May 2010, 08:21 AM
Whenever a word does not fit in its entirety it's not shown at all. Is there any way to get around this so as much as possible of the text in the TextBox is shown?

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 17 May 2010, 09:12 AM
Hello Olof Petterson,

If you have set the TextBox property CanGrow to false and you don't want the TextBox to grow then you can change the font size dynamically by using Bindings and set the Style.Font.Size property to an User Function (see the code snippet) as shown bellow:



public static Telerik.Reporting.Drawing.Unit ReturnFontSize(string value)
{
    return Telerik.Reporting.Drawing.Unit.Point(18-value.Length);
}

All the best,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Olof Petterson
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or