If you need the item to wrap the text and grow vertically when the the text is too long to fit on a single line, this is easy achievable. Just set the CanGrow
property of the TextBox to true
If you want to dynamically change the width of the item, you will need your custom logic to somehow determine some width.
Then you have to possible solutions:
1. With an event as shown in the following code snippet to programmatically set a TextBox width:
private void textBox1_ItemDataBound(object sender, EventArgs e)
var procTextBox = (sender as Telerik.Reporting.Processing.TextBox);
if (procTextBox.Value.ToString().Length> 5)
procTextBox.Width = Unit.Pixel(50);
procTextBox.Width = Unit.Pixel(5);
2. Set the Bindings Width property to an User Function as shown in following code snippet:
public static Telerik.Reporting.Drawing.Unit RunTimeWidth(string value)
if (value.Length > 5)
Hope this information helps.
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?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.