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

Change TextBox Height According to Neighboring TextBox

2 Answers 499 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 12 Aug 2015, 10:50 PM

Hi,

 I have abandoned tables due to grouping issues and am now using textboxes and report groups.  In a group header, I have 5 texboxes which all have CanGrow set to True.

The problem is that when one text box grows in height, the others stay the same size.  I would like all textboxes to be the same height after the report renders.  So if one text box has to grow, the others should grow to that same size.

I tried to use anchoring, but I have textboxes above and below so they end up overlapping if I anchor them.

Is there anyway to get all texboxes in a group to grow in height dynamically depending on the size of the largest?

 Thanks,

Phillip

2 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 17 Aug 2015, 02:10 PM
Hello Phillip,

Test adding a Table item bound to data via binding and expression like ReportItem.DataObject. Thus the item will use only the data scope of the container section. Then TextBox items can be aligned by placing them in the Table item.

I hope this information is helpful.

Regards,
Stef
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Phil
Top achievements
Rank 1
answered on 17 Aug 2015, 02:30 PM

Thanks Stef.

 I have an uncommon situation where we need groups of textboxes to grow together in spite of textboxes above or below.  Each group may need its own binding depending on certain values.  Therefor, I was able to accomplish my goal by putting each row group of textboxes in a separate report group and setting anchoring on all textboxes to 'top' and 'bottom'.  

Tags
General Discussions
Asked by
Phil
Top achievements
Rank 1
Answers by
Stef
Telerik team
Phil
Top achievements
Rank 1
Share this question
or