CanShrink with empty textboxes

13 posts, 0 answers
  1. Damian
    Damian avatar
    16 posts
    Member since:
    May 2004

    Posted 02 Jan 2009 Link to this post

    Has anyone had any luck using the CanShrink property to cause text boxes to move up when the textboxes above them are empty. It is described in the final example of the link below but I can't make it work.

    http://www.telerik.com/help/reporting/faqshrinktextboxeswithnodata.html
    Thanks,

    Damian.


  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 05 Jan 2009 Link to this post

    Hi Damian,

    We've already addressed your support inquiry and would look into the issue. For the time being please set really small height for the "blanked" textbox item and it would not take up any space when empty, but would grow whenever there is data.

    Sorry for the temporary inconvenience once again.

    Sincerely yours,
    Steve
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. Mercell
    Mercell avatar
    33 posts
    Member since:
    Nov 2006

    Posted 09 Jan 2009 Link to this post

    Hi Steve

    We have a similar problem in our reports, some of them with around 100 textboxes so setting the height to something small would require a lot of work for us AND when the problem is fixed we can spend time setting them back to their "normal" height to make the reports look ok in the designer view i Visual Studio.
     
    Do you know when this is fixed or can you provide us with a patch?

    We are releasing late january and our tests has already started so we need it a lot.

    Thanks,
    Brian
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 09 Jan 2009 Link to this post

    Hello Bo,

    Our developers have addressed the problem and it would be part of the Q3 SP2 release expected in a couple of weeks.

    Please excuse us for the temporary inconvenience.

    Regards,
    Steve
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Mercell
    Mercell avatar
    33 posts
    Member since:
    Nov 2006

    Posted 19 Jan 2009 Link to this post

    Hi Steve

    Anything new about the Q3 SP2 release? As far as I can see it wasn't released last week.

    Thanks,
    Brian
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 19 Jan 2009 Link to this post

    Hello Bo,

    Some last minute refinements and testing that goes along with it forced us to move the release date for this week.

    Sorry for the inconvenience caused once again.

    Regards,
    Steve
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. Mercell
    Mercell avatar
    33 posts
    Member since:
    Nov 2006

    Posted 22 Jan 2009 Link to this post

    Hi Steve

    Sorry to disturb you again but will it be today or tomorrow the SP2 will be released?

    If not could you supply us with a patch?

    Thanks,
    Brian
  9. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 22 Jan 2009 Link to this post

    Hello Bo,

    We're working hard on the service pack, but at this point we cannot specify exact release date, although we are doing our best to be as soon as possible. The problem you reported is long time fixed, but as we are in final preparations, we cannot engage with producing a custom build for it, as this would slow us even more.

    Thank you for the patience and understanding.

    Greetings,
    Steve
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  10. Morten Louw
    Morten Louw avatar
    21 posts
    Member since:
    Sep 2008

    Posted 07 Feb 2009 Link to this post

    Hi,

    I'm having the same problem. If the content is empty it remains at the same height. I thought it should collapse to a zero height.

    I just updated my telerik reporting in my development environment and the problem remains.
    The DLL's version is 2.9.9.202. I think it's from the 2nd of february.

    Are there more settings needed than the canshrink property?

    Kind regards,
    Morten
  11. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 11 Feb 2009 Link to this post

    Hi Morten,

    Unfortunately this is a different bug with the same manifestation and we sincerely apologize for this omission on our end. We've already identified the cause of the problem and it would be addressed in the next Telerik Reporting release.
    For the time being, as a workaround, please use either the suggested approach in the second post of this thread, or apply conditional formatting so that when items are empty it would set the item Visibility to false.

    Please excuse us for the inconvenience. Your Telerik points have been updated for bringing this to our attention.

    Greetings,
    Steve
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  12. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 08 Jun 2011 Link to this post

    Hi, 

    Has this already been fixed? I have two TextBoxes in my DetailSection with both CanGrow and CanShrink properties set to "True", but whenever both TextBoxes are empty the space is still reserved and I see some whitespace in my report between rows. I really want these TextBoxes to be hidden whenever they are empty, so that I don't see the reserved whitespace anymore.

    Any ideas? Thanks in advance!

    Regards,
    Datamex

  13. IvanDT
    Admin
    IvanDT avatar
    76 posts

    Posted 08 Jun 2011 Link to this post

    Hello Damian,

    The described behavior is happening because container items grow to accommodate all of their children even though they are set to shrink and they are empty.

    The solution is to set the height of your detail section to a minimum possible height after the InitializeComponent():

    this.detail.Height = new Telerik.Reporting.Drawing.Unit(0.000001, Telerik.Reporting.Drawing.UnitType.Inch);


    Regards,
    IvanDT
    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
  14. Michael Yereniuk
    Michael Yereniuk avatar
    10 posts
    Member since:
    May 2008

    Posted 26 Aug 2011 Link to this post

    @Datamex, I have encountered the same problem as you're describing.

    On a whim, I adjusted my MS SQL call to convert the null values into empty strings ('') and the report's shrink property worked as expected.

    My detail section was still too tall, so I implemented the change suggested by IvanDT on the Jun 8, 2011 post and report is formatted the way I want now.

    Hope this helps!

    Michael
Back to Top
DevCraft banner