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

Shrink empty Table space

2 Answers 423 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yuriy
Top achievements
Rank 1
Yuriy asked on 12 Feb 2018, 02:37 PM

Hi,

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,

Yuri.

 

 

2 Answers, 1 is accepted

Sort by
0
Yuriy
Top achievements
Rank 1
answered on 13 Feb 2018, 11:24 AM

Updates:

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?

0
Todor
Telerik team
answered on 16 Feb 2018, 03:15 PM
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).

Regards,
Todor
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
Tags
General Discussions
Asked by
Yuriy
Top achievements
Rank 1
Answers by
Yuriy
Top achievements
Rank 1
Todor
Telerik team
Share this question
or