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

Remove page if detail empty

1 Answer 154 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 24 Sep 2015, 10:48 AM

Hello

Any take on this problem would be appreciated.

 

I need to remove a page when a  condition is met.

I check the condition in detail_ItemDatabound as:

 

  private void detail_ItemDataBound(object sender, EventArgs e)
{

if (true)

{  Telerik.Reporting.Processing.DetailSection section = (sender as Telerik.Reporting.Processing.DetailSection);
          
  section.Visible = false;​  //this naturally only blanks the detailsection, i need to completely remove current page

}

}

 

Any hint??

 

regards

Mark

1 Answer, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 24 Sep 2015, 03:45 PM
Hello Mark,

You need to filter the data coming from the Report.DataSource using Filtering. The filtered records will not generate additional detail, group header and group footer sections.

Regards,
Nasko
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
Mark
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or