|
|
RadGrid for ASP.NET AJAX Version Q3 2008 released 11/25/2008 (release history)
Run example in:
| BLONP | France | Strasbourg | Blondesddsl père et fils | Frédérique Citeaux | 26 | $19,087.25 |
| SEVES | UK | London | Seven Seas Imports | Hari Kumar | 26 | $17,170.15 |
| OLDWO | USA | Anchorage | Old World Delicatessen | Rene Phillips | 24 | $16,323.55 |
| THEBI | USA | Portland | The Big Cheese | Liz Nixon | 7 | $3,361.00 |
| FRANS | Italy | Torino | Franchi S.p.A. | Paolo Accorti | 10 | $1,545.70 |
| MAGAA | Italy | Bergamo | Magazzini Alimentari Riuniti | Giovanni Rovelli | 21 | $7,602.80 |
| SIMOB | Denmark | Kobenhavn | Simons bistro | Jytte Petersen | 15 | $18,136.35 |
| ALFKI | Germany | Berlin | Alfreds Futterkiste | Maria Anders | 12 | $4,595.15 |
| FAMIA | Brazil | Sao Paulo | Familia Arquibaldo | Aria Cruz | 19 | $4,437.70 |
| LAZYK | USA | Walla Walla | Lazy K Kountry Store | John Steel | 2 | $357.00 |
| GROSR | Venezuela | Caracas | GROSELLA-Restaurante | Manuel Pereira | 4 | $1,488.70 |
| FOLKO | Sweden | Bräcke | Folk och fä HB | Maria Larsson | 45 | $32,551.70 |
| CHOPS | Switzerland | Bern | Chop-suey Chinese | Yang Wang | 22 | $12,885.00 |
| ERNSH | Austria | Graz | Ernst Handel | Roland Mendel | 102 | $113,229.73 |
| FRANK | Germany | München | Frankenversand | Peter Franken | 48 | $28,719.56 |
| HILAA | Venezuela | San Cristóbal | HILARION-Abastos | Carlos Hernández | 45 | $23,610.08 |
| CENTC | Mexico | México D.F. | Centro comercial Moctezuma | Francisco Chang | 2 | $100.80 |
| ISLAT | UK | Cowes | Island Trading | Helen Bennett | 23 | $6,146.30 |
| GOURL | Brazil | Campinas | Gourmet Lanchonetes | André Fonseca | 19 | $8,700.93 |
| BERGS | Sweden | Luleå | Berglunds snabbköp | Christina Berglund | 52 | $26,965.15 |
Example Source Code & Description
This example demonstrates how GroupByExpressions can be used
in Telerik RadGrid:
- Creating group-by expressions, testing expressions syntax:
-
Expression syntax: fieldname[ alias]|aggregate(fieldname)[ alias][, ...]
Group By fieldname[ sort][, ...]
Where:
fieldname: name of any
field from the DataSource
alias: alias string.
This cannot contain blanks or other reserved symbols like ',', '.' etc.
aggregate: any of - min,
max, sum, count, last, first etc (the same as in GridAggregateFunction
enumeration)
sort: acs or desc - the
sort order of the grouped items
Example: Country, City,
count(Country) Items, ContactName Group By Country, City desc
- Displaying additional information in each group header - like aggregate fields
- Dynamically add a "SubTotal" to each group, handling grid's grouping events
Additional info concerning the grouping feature of the control you can find in the Grouping
section from the online help:
Declarative group-by expressions
Programmatic group-by expressions
Customizing GridGroupHeaderItem
Performing calculations in group header
|