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

Suppressing lines in group footer

1 Answer 121 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kenneth
Top achievements
Rank 1
Kenneth asked on 24 Jun 2008, 04:21 PM
Hello,

I am using Telerik reporting 2.5/VS2005/VB.net.

In a group footer, I want to conditionally suppress lines that have zero values.
Example:

Totals for conference 232322
800 callers        9
Local callers      5
Dialout callers    2
Total callers        16

If there are no Local callers, I want the following ....
Totals for conference 232322
800 callers        9
Dialout callers    2
Total callers        11

With no blanks for the rows, a total suppression of the lable and counter field.

Thanks, Ken

1 Answer, 1 is accepted

Sort by
0
Milen | Product Manager @DX
Telerik team
answered on 25 Jun 2008, 03:48 PM
Hi Kenneth,

What you are trying to do is possible with hiding/moving of the desired processing items at runtime. You need to handle the ItemDataBound event of the section containing the items. When this event is fired, all items in the section are already bound which means that all expressions are evaluated. So you can check the result of the evaluation and hide the unnecessary items and move the necessary items to avoid gaps.

Find attached a sample report demonstrating the described approach.
Note: Pay attention to the line added in the constructor of the report so that the height of the group footer section fits based on the items in it.
 
I hope this information helps.

Best wishes,
Milen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Kenneth
Top achievements
Rank 1
Answers by
Milen | Product Manager @DX
Telerik team
Share this question
or