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

hiding the subreport is not making the space go away?

1 Answer 96 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
akpaga akpaga
Top achievements
Rank 1
akpaga akpaga asked on 18 Jun 2012, 10:05 PM
I have a subreport in my details section of my report and i am trying to hide the subreport when it does not contain any data 

Telerik.Reporting.Processing.SubReport subReport = (Telerik.Reporting.Processing.SubReport)sender;
            Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)subReport.InnerReport;
            subReport.Visible = subReport.ChildElements.Find("detail", true).Length > 0;

But the above code just hides the subreport and the space occupied by it still persists and there is that gap between my main report rows.....How can i get the space removed  when the subreport is not showing up?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Jun 2012, 09:10 AM
Hi,

This behavior is by design and you can find more info about it in Design Considerations for Report Item Layout.

All the best,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

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