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

Q1 2010: How to hide or show a Group at Runtime

2 Answers 151 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
kellyroberts
Top achievements
Rank 1
kellyroberts asked on 28 Apr 2010, 08:09 PM
Hi All -

    The original thread talks about how to do this using a conditional formatting expression such as reportparameters.showsomegroup.value = False and then unchecking the 'visible' style setting on the appropriate group header/footer.  This works well except for one thing.  When the visible on the section style is unchecked, all the controls in that section are hidden yes, but what is left is whitespace the same height as the section, so even when the group is not shown there is a big ugly break in the details section at every group change.  Is there a way to hide the group header/footer as if it were never there? unchecking visible on section style only seems to hide controls not the whole section.


Thank you

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 29 Apr 2010, 06:01 PM
Hello kellyroberts,

You may have to set the groupHeaderSection height property to 0 in code behind after the InitializeComponent() as shown in the attached sample report. This way it will grow to the necessary height only when Visibility property is True.

Check it out and if you still experience difficulties modify the sample project to show the undesired effect and send it through the support system so we can further advice you.

Kind regards,
Peter
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.
0
kellyroberts
Top achievements
Rank 1
answered on 30 Apr 2010, 03:29 PM
thank you.  I'll try it out.
Tags
General Discussions
Asked by
kellyroberts
Top achievements
Rank 1
Answers by
Peter
Telerik team
kellyroberts
Top achievements
Rank 1
Share this question
or