select

Grid / Group Footers

Rate this demo: Feedback
Run example in: C# VB.NET Change Skin:
Vista
  • BlackBlack
  • DefaultDefault
  • ForestForest
  • HayHay
  • Office2007Office2007
  • OutlookOutlook
  • SimpleSimple
  • SitefinitySitefinity
  • SunsetSunset
  • TelerikTelerik
  • VistaVista
  • Web20Web20
  • WebBlueWebBlue
  • Windows7Windows7
Displaying RadGrid's group footers:
Switch group load mode:



Unit price  
 Product IDProduct nameUnit priceUnits in stockTotal Price
 
 Total products: 67 Total price: 2150.31All units in stock: 2652Total : 70977.15
Page size:
select
 67 items in 7 pages

Unit price: 9.65

 41Jack's New England Clam Chowder9.65 85 820.25
 Total products: 1 Total price: 9.65All units in stock: 85Total : 820.25

Unit price: 10.00

 3Aniseed Syrup10.00 13 130
 21Sir Rodney's Scones10.00 3 30
 74Longlife Tofu10.00 4 40
 Total products: 3 Total price: 30.00All units in stock: 20Total : 200

Unit price: 12.00

 46Spegesild12.00 95 1140
 Total products: 1 Total price: 12.00All units in stock: 95Total : 1140

Unit price: 12.50

 31Gorgonzola Telino12.50 0 0
 68Scottish Longbreads12.50 6 75
 Total products: 2 Total price: 25.00All units in stock: 6Total : 75

Unit price: 12.75

 48Chocolade12.75 15 191.25
 Total products: 1 Total price: 12.75All units in stock: 15Total : 191.25

Unit price: 13.00

 77Original Frankfurter grüne Soße13.00 32 416
 Total products: 1 Total price: 13.00All units in stock: 32Total : 416

Unit price: 13.25

 58Escargots de Bourgogne13.25 62 821.5
 Total products: 1 Total price: 13.25All units in stock: 62Total : 821.5
Click PostBack to see the state of the grid is preserved.

Example Source Code & Description

Instructions
Open in new window
  • In addition to displaying summaries/results from aggregates in the group header, RadGrid exposes group footers feature which provides the option to render footer under each group in the grid. The type of this footer item is GridGroupFooterItem. To enable this functionality merely set the ShowGroupFooter property of the respective GridTableView instance to true (its default value is false).

    RadGrid also gives you the opportunity to retain the visibility of the group footers when their corresponding group header row is collapsed. In order to switch on this feature, just set the GroupingSettings.RetainGroupFooterVisibilityproperty to true.

    The group footers are most commonly used to visualize calculations from aggregate functions within the scope of the current group. Furthermore, with nested groups you will have group footer for each inner group along with one for the main group. Aggregate calculations are supported for GridBoundColumns, GridCalculatedColumns and GridTemplateColumns.

    In order to specify how the group aggregates will be evaluated, specify in every GridBoundColumn/GridCalculatedColumn/GridTemplateColumn the Aggregate property which accepts values from the GridAggregateFunction enumeration.

    RadGrid will calculate aggregates over the entire data source and will respect the filter expression applied (if present).

    For more information refer to the following online help article:
    Group footers

Compatible with ASP.NET 2.0, 3.5 AJAX enabled Accessibility Verified!Valid XHTML 1.1! Optimized for Visual Studio 2005, 2008
Copyright 2002-2010 © Telerik. All right reserved  | 
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451

www.telerik.com  |  Terms of Use  |  Contact Us