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

How to hide a group in the report?

1 Answer 153 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Wei
Top achievements
Rank 1
Wei asked on 06 Jun 2011, 04:09 PM
Hi there,

My report includes a group which has conditional formating associated to control its visibility. It works fine, but even when its invisibility, it still occupy the same space in the report. Is there any way that I can squeeze the report when the group is invisibility (i.e., to make the group real invisible)? Or is there a way that I can work around?

Thanks for your help in advance.

Wei 

1 Answer, 1 is accepted

Sort by
0
Accepted
IvanDT
Telerik team
answered on 07 Jun 2011, 04:44 PM
Hello Wei,

There is an approach for your situation. The described behavior is happening because sections (container items) cannot auto shrink, but grow to accommodate all of their children.

The solution is to set the height of your group section to a minimum possible height after the InitializeComponent():

this.groupheader1.Height = new Telerik.Reporting.Drawing.Unit(0.000001, Telerik.Reporting.Drawing.UnitType.Inch);

Best wishes,

IvanDT
the Telerik team

 

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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Wei
Top achievements
Rank 1
Answers by
IvanDT
Telerik team
Share this question
or