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

3 posts, 0 answers
  1. kellyroberts
    kellyroberts avatar
    45 posts
    Member since:
    Jul 2007

    Posted 28 Apr 2010 Link to this post

    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. Peter
    Peter avatar
    1629 posts

    Posted 29 Apr 2010 Link to this post

    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,
    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.
  3. kellyroberts
    kellyroberts avatar
    45 posts
    Member since:
    Jul 2007

    Posted 30 Apr 2010 Link to this post

    thank you.  I'll try it out.
Back to Top