Advanced Layout Demo
This example contains 6 layouts of different kinds:
- Simple Layout: a basic layout but which includes a Calculated Column (Avg Item Cost) and a FreeText Column (Comments)
- Col Widths Layout: a layout where 2 columns (OrderId and Comments) are given wider initial widths.
- Sorting Layout: a layout which contains 2 sorted columns (ShipName and ShipVia), the latter of which also has a Custom Sort.
- Grouping Layout: which groups on the Employee and Ship Country columns
- Pivoting Layout which defines the following pivoting definition:
- Pivot on the ShipVia column (the PivotColumns property) - note that we automatically uses the Custom Sort defined for that this column.
- Group on the Employee column (the RowGroupedColumns property)
- Show aggregation totals for the InvoicedCost (sum) and ItemCost (avg) columns (the AggregationColumns property)
- Advanced Layout: bit of everything
Note: we have set groupIncludeTotalFooter to true in GridOptions so that it always appears (even when grid is not row grouped) and added these aggregations: 'ItemCost', 'InvoicedCost': sum, 'ItemCount': avg
AdapTable Help Resources:
Generating dummy data, please wait ...