Pivot Layout Technical Reference

Summary

  • Layout State enables Pivot Layouts to be configured

Find Out More

See General Layouts Technical Reference for details on Layout Options and Layout API

Layout State

Layout State contains a collection of Layouts and the Current Layout:

PropertyDescription
CurrentLayoutLayout to be loaded when AdapTable starts (using Name property in Layout); if not provided the first Layout is used
LayoutsCollection of Layouts - can be Table or Pivot

Base Layout Object

Pivot Layouts derive from the LayoutBase object defined as follows:

PropertyDescription
AutoSizeColumnsWhether Columns should autosize when Layout first loads
ColumnFiltersCollection of Column Filters to apply in Layout
ColumnGroupValuesDefines which Column Groups are expanded / collapsed
ColumnHeadersSet of custom header names for some (or all) Columns
ColumnPinningDetails of which Columns are pinned
ColumnSizingControls size (width or flex & min/max) for Columns
ColumnSortsSorting to apply in the Layout
GrandTotalRowPosition of the Grand Total Row in the Layout
GridFilterGrid Filter to apply in Layout
NameName of the Layout as it appears in the Layout toolbar and tool panel
RowGroupDisplayTypeDisplay Row Grouped Columns as 'single' or 'multi' column
RowGroupValuesDefines which Row Groups are expanded / collapsed
SuppressAggFuncInHeaderHides the aggFunc in Column header: e.g. 'sum(Price)' becomes 'Price'
IsReadOnlySets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')

Pivot Layout Object

The Pivot Layout additionally has:

PropertyDescription
PivotAggregationColumnsColumns showing aggregated values in Group Rows; 1st value in record is Column name, 2nd is either aggfunc (e.g. sum, avg etc.) or 'true' (to use default aggfunc)
PivotColumnsMandatory list of Columns to pivot (provide empty array if just displaying Aggregations)
PivotColumnTotalDisplay automatically calculated Totals within EACH Pivot Column Group, in the position specified
PivotExpandLevelHow deep to expand Pivot Columns (0 for none, 1 for 1st level only etc, -1 to expand all)
PivotGrandTotalDisplay automatically calculated Totals of all Pivot Columns, in the position specified
PivotGroupedColumnsColumns which are row-grouped when the Layout is applied
PivotResultColumnsOrderOrdered list of Pivot Result Columns; set to true to track current display order, or provide custom list
IsReadOnlySets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')

Column Filter

The ColumnFilters property is a collection of ColumnFilter objects defined as follows:

PropertyDescriptionDefault
ColumnIdColumn where Filter should be applied
PredicatesAdaptablePredicate which AdaptableQL will evaluate when the Filter is run
PredicatesOperatorLogic used when combining multiple Predicates ('AND'|'OR')'AND'
IsReadOnlySets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')
IsSuspendedSuspends (i.e. turns off) an Adaptable Object

Grid Filter

The GridFilter object is defined as follows:

PropertyDescription
ExpressionThe (boolean) Expression to run
IsReadOnlySets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')
IsSuspendedSuspends (i.e. turns off) an Adaptable Object

Column Sort

The ColumnSort object used for sorting is defined as follows:

PropertyDescription
ColumnIdId of Column being sorted
SortOrderHow Column is sorted - either 'Asc' or 'Desc'

Other Pivot Layout Properties

PropertyType
ColumnPinningColumnDirectionMap
ColumnSizingColumnSizingMap
ColumnHeadersColumnStringMap
RowGroupValuesRowGroupValues
ColumnGroupValuesColumnGroupValues

Note