Expanding TextBox

6 posts, 0 answers
  1. Jeff
    Jeff avatar
    3 posts
    Member since:
    Nov 2007

    Posted 20 Jun 2008 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 23 Jun 2008 Link to this post

    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
  3. DevCraft banner
  4. Jeff
    Jeff avatar
    3 posts
    Member since:
    Nov 2007

    Posted 23 Jun 2008 Link to this post

    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.

  5. Pawz
    Pawz avatar
    51 posts
    Member since:
    Aug 2007

    Posted 23 Jun 2008 Link to this post

    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.
  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 24 Jun 2008 Link to this post

    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
  7. Jeff
    Jeff avatar
    3 posts
    Member since:
    Nov 2007

    Posted 24 Jun 2008 Link to this post

    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
Back to Top
DevCraft banner