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

Hide outer GridGroupFooter

2 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 20 Oct 2011, 03:26 PM

I have a radgrid with two group-by-expressions defined, and aggregate sums defined on the bound columns.  I want to hide the outer GridGroupFooterItem.  My problem is similar to the one described in this other forum post.
http://www.telerik.com/community/forums/aspnet-ajax/grid/groupfooter-on-subgroup-only.aspx

I have a runtime reference to the GridGroupFooterItem in my ItemDataBound event handler.  And I also know, from GroupIndex, whether a footer is the inner or outer one.

My problem is that I have not found a way to hide the GridGroupFooterItem, as was suggested by the response to that original post.

Can anyone assist?

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin
Telerik team
answered on 24 Oct 2011, 07:33 AM
Hi Mark,

 After you have found the necessary GridGroupFooterItem you can try to clear its controls collection. This way it will not be shown when the grid is rendered:

(e.Item as GridGroupFooterItem).Controls.Clear();

Best wishes,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Mark
Top achievements
Rank 1
answered on 24 Oct 2011, 09:26 AM
Many thanks!  That's just what I needed!

Regards
Mark

Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Marin
Telerik team
Mark
Top achievements
Rank 1
Share this question
or