Shrink empty Table space

3 posts, 0 answers
  1. Yuriy
    Yuriy avatar
    9 posts
    Member since:
    Jan 2014

    Posted 12 Feb 2018 Link to this post


    I'm creating report where table1 contains another table2 and these tables bind to a data (Layout.png). Tha data for table2 can be empty and it needs to be callapced. But report generates empty space for table2 if there is no data (Table space.png). I've tried to set the CanShrink = True for textbox2, to add the ConditionalFormatting to set the Visibility = False if there is no data for table2. But it does not work.

    How can I hide the empty space?

    Thank you,




  2. Yuriy
    Yuriy avatar
    9 posts
    Member since:
    Jan 2014

    Posted 13 Feb 2018 Link to this post


    I've tried to set minimum height for textboxes and tables and now the empty spaces not so big but still present. Is here any workaround?

  3. Todor
    Todor avatar
    560 posts

    Posted 16 Feb 2018 Link to this post

    Hello Yuri,

    You should set the CanShrink property of Panel1 (the one from the screenshot that is inside Table1 and contains Table2) to 'True'.

    In fact the Table is not visible when there is no data (you could set its background to a color to check this), but when the Panel is not allowed to shrink it preserves its design time area size.

    I have attached a sample report demonstrating the suggested approach.
    Note that the sample .trdp report uses an ObjectDataSource, which data provider ('ObjectDataSource.dll') should be registered in the <AssemblyReferences> element of the <Telerik.Reporting> section of the configuration file of the designer (Telerik.ReportDesigner.exe.config), as explained here.
    The attached 'ObjectDataSource.dll' should also be copied in the folder of the Standalone designer.
    Standalone designer could be found in (Telerik Reporting installation folder)\Report Designer (for example C:\Program Files (x86)\Progress\Telerik Reporting R1 2018\Report Designer).

    Progress 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
Back to Top