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

Expanding TextBox

5 Answers 216 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 20 Jun 2008, 09:25 PM
I have a section on my report that display the company name, street address, city, state and zip all stacked on top of one another. My problem is that when someone enters a two line street address, the second  line bleeds over on top of the city. Is there a way to dynamically increase the size of the textbox to accommodate the second line and then push all of the textboxes underneath it down.

Thanks
Jeff

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 23 Jun 2008, 09:49 AM
Hi Jeff,

As we are unable to reproduce it (do you have CanGrow=true for the address textbox?), can you send us a screenshot and a sample report showing this abnormality. Once we review it, we would be able to provide more info.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jeff
Top achievements
Rank 1
answered on 23 Jun 2008, 02:06 PM

Steve,

Thanks for the help. There are 3 fields in question for Ocf.cs and they are all marked as CanGrow.

I’ve attached the report files (VS 2008) and a screenshot. Thanks for your help. The project is in production so time is imperative.

0
Pawz
Top achievements
Rank 1
answered on 24 Jun 2008, 01:14 AM
I would see two solutions - either modify the report and account for the occasional extra size all the time (shift everything down), or extend the textbox to the right a lot more, and remove any line breaks from the address, putting it all on one line.
If the textbox is long enough to hold the text but is still dropping down to the second line, that probably means you've got a line break in the data itself.
0
Steve
Telerik team
answered on 24 Jun 2008, 09:58 AM
Hi Jeff,

We have not been able to run the report designer, due to missing classes, but looking at your screenshot we notice that you are using win reportviewer and not the web reportviewer as you have specified in the forum information.
This can occur in win reportviewer when you have two overlapping textboxes (see attached screenshots). Note the caution box and warning message and how these textboxes look in runtime. Basically when they are overlapping, the cangrow mechanism that would normally shift everything further down when the upper item is growing would not work. So to avoid such problems, make sure you do not have overlapping report items.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jeff
Top achievements
Rank 1
answered on 24 Jun 2008, 03:38 PM
Thanks for the help and I will look into your recommendation. BTW... I never stated that I was using the web report viewer.

Thanks
Jeff
Tags
General Discussions
Asked by
Jeff
Top achievements
Rank 1
Answers by
Steve
Telerik team
Jeff
Top achievements
Rank 1
Pawz
Top achievements
Rank 1
Share this question
or