Pivot Grid provides a way to present and manipulate data in a pivot table view.

Callable

  • Returns ReactNode

Accessors

allDimensions: IgrPivotDimension[]

Gets the full list of dimensions.

dimensionsSortingExpressions: IgrSortingExpression[]

Gets the sorting expressions generated for the dimensions.

selectedRows: any[]

Events

onActiveNodeChange: (args: CustomEvent<IgrActiveNodeChangeEventArgsDetail>) => void

Type declaration

onAdvancedFilteringExpressionsTreeChange: (args: CustomEvent<IgrFilteringExpressionsTree>) => void

Type declaration

onCellClick: (args: CustomEvent<IgrGridCellEventArgsDetail>) => void

Type declaration

onCellEdit: (args: CustomEvent<IgrGridEditEventArgsDetail>) => void

Type declaration

onCellEditDone: (args: CustomEvent<IgrGridEditDoneEventArgsDetail>) => void

Type declaration

onCellEditEnter: (args: CustomEvent<IgrGridEditEventArgsDetail>) => void

Type declaration

onCellEditExit: (args: CustomEvent<IgrGridEditDoneEventArgsDetail>) => void

Type declaration

onColumnInit: (args: CustomEvent<IgrColumn>) => void

Type declaration

onColumnMoving: (args: CustomEvent<IgrColumnMovingEventArgsDetail>) => void

Type declaration

onColumnMovingEnd: (args: CustomEvent<IgrColumnMovingEndEventArgsDetail>) => void

Type declaration

onColumnMovingStart: (args: CustomEvent<IgrColumnMovingStartEventArgsDetail>) => void

Type declaration

Type declaration

onColumnPinned: (args: CustomEvent<IgrPinColumnEventArgsDetail>) => void

Type declaration

onColumnResized: (args: CustomEvent<IgrColumnResizeEventArgsDetail>) => void

Type declaration

onColumnsAutogenerated: (args: CustomEvent<IgcColumnsAutoGeneratedEventArgs>) => void

Type declaration

onColumnSelectionChanging: (args: CustomEvent<IgrColumnSelectionEventArgsDetail>) => void

Type declaration

onColumnVisibilityChanged: (args: CustomEvent<IgrColumnVisibilityChangedEventArgsDetail>) => void

Type declaration

onColumnVisibilityChanging: (args: CustomEvent<IgrColumnVisibilityChangingEventArgsDetail>) => void

Type declaration

onContextMenu: (args: CustomEvent<IgrGridContextMenuEventArgsDetail>) => void

Type declaration

onDataChanged: (args: CustomEvent<IgrForOfDataChangeEventArgsDetail>) => void

Type declaration

onDataChanging: (args: CustomEvent<IgrForOfDataChangeEventArgsDetail>) => void

Type declaration

onDimensionInit: (args: CustomEvent<IgrPivotDimension>) => void

Type declaration

onDimensionsChange: (args: CustomEvent<IgrDimensionsChange>) => void

Type declaration

onDimensionsSortingExpressionsChange: (args: CustomEvent<IgrSortingExpression[]>) => void

Type declaration

onDoubleClick: (args: CustomEvent<IgrGridCellEventArgsDetail>) => void

Type declaration

onExpansionStatesChange: (args: CustomEvent<Map<any, boolean>>) => void

Type declaration

onFiltering: (args: CustomEvent<IgrFilteringEventArgsDetail>) => void

Type declaration

onFilteringDone: (args: CustomEvent<IgrFilteringExpressionsTree>) => void

Type declaration

onFilteringExpressionsTreeChange: (args: CustomEvent<IgrFilteringExpressionsTree>) => void

Type declaration

onFormGroupCreated: (args: CustomEvent<IgrGridFormGroupCreatedEventArgsDetail>) => void

Type declaration

onGridCopy: (args: CustomEvent<IgrGridClipboardEvent>) => void

Type declaration

onGridKeydown: (args: CustomEvent<IgrGridKeydownEventArgsDetail>) => void

Type declaration

onGridScroll: (args: CustomEvent<IgrGridScrollEventArgsDetail>) => void

Type declaration

onPivotConfigurationChange: (args: CustomEvent<IgrPivotConfigurationChangedEventArgsDetail>) => void

Type declaration

onRangeSelected: (args: CustomEvent<IgrGridSelectionRange>) => void

Type declaration

onRendered: (args: CustomEvent<boolean>) => void

Type declaration

Type declaration

onRowAdded: (args: CustomEvent<IgrRowDataEventArgsDetail>) => void

Type declaration

onRowClick: (args: CustomEvent<IgrGridRowEventArgsDetail>) => void

Type declaration

onRowDelete: (args: CustomEvent<IgrRowDataCancelableEventArgsDetail>) => void

Type declaration

onRowDeleted: (args: CustomEvent<IgrRowDataEventArgsDetail>) => void

Type declaration

onRowDragEnd: (args: CustomEvent<IgrRowDragEndEventArgsDetail>) => void

Type declaration

onRowDragStart: (args: CustomEvent<IgrRowDragStartEventArgsDetail>) => void

Type declaration

onRowEdit: (args: CustomEvent<IgrGridEditEventArgsDetail>) => void

Type declaration

onRowEditDone: (args: CustomEvent<IgrGridEditDoneEventArgsDetail>) => void

Type declaration

onRowEditEnter: (args: CustomEvent<IgrGridEditEventArgsDetail>) => void

Type declaration

onRowEditExit: (args: CustomEvent<IgrGridEditDoneEventArgsDetail>) => void

Type declaration

onRowPinned: (args: CustomEvent<IgrPinRowEventArgsDetail>) => void

Type declaration

onRowPinning: (args: CustomEvent<IgrPinRowEventArgsDetail>) => void

Type declaration

onRowSelectionChanging: (args: CustomEvent<IgrRowSelectionEventArgsDetail>) => void

Type declaration

onRowToggle: (args: CustomEvent<IgrRowToggleEventArgsDetail>) => void

Type declaration

onSelected: (args: CustomEvent<IgrGridCellEventArgsDetail>) => void

Type declaration

onSelectedRowsChange: (args: CustomEvent<any[]>) => void

Type declaration

onSorting: (args: CustomEvent<IgrSortingEventArgsDetail>) => void

Type declaration

onSortingDone: (args: CustomEvent<IgrSortingExpression[]>) => void

Type declaration

onSortingExpressionsChange: (args: CustomEvent<IgrSortingExpression[]>) => void

Type declaration

onToolbarExporting: (args: CustomEvent<IgrGridToolbarExportEventArgsDetail>) => void

Type declaration

onValidationStatusChange: (args: CustomEvent<IgrGridValidationStatusEventArgsDetail>) => void

Type declaration

onValueInit: (args: CustomEvent<IgrPivotValue>) => void

Type declaration

onValuesChange: (args: CustomEvent<IgrValuesChange>) => void

Type declaration

Methods

  • Auto-sizes row dimension cells.

    Only sizes based on the dimension cells in view.

    this.grid.autoSizeRowDimension(dimension);
    

    Parameters

    Returns void

  • Inserts dimension in target collection by type at specified index or at the collection's end.

    this.grid.insertDimensionAt(dimension, PivotDimensionType.Row, 1);
    

    Parameters

    • dimension: IgrPivotDimension

      The dimension that will be added.

    • targetCollectionType: PivotDimensionType

      The target collection type to add to. Can be Row, Column or Filter.

    • index: number

      The index in the collection at which to add. This parameter is optional. If not set it will add it to the end of the collection.

    Returns void

  • Inserts value at specified index or at the end.

    this.grid.insertValueAt(value, 1);
    

    Parameters

    • value: IgrPivotValue

      The value definition that will be added.

    • index: number

      The index in the collection at which to add. This parameter is optional. If not set it will add it to the end of the collection.

    Returns void

  • Move dimension from its currently collection to the specified target collection by type at specified index or at the collection's end.

    this.grid.moveDimension(dimension, PivotDimensionType.Row, 1);
    

    Parameters

    • dimension: IgrPivotDimension

      The dimension that will be moved.

    • targetCollectionType: PivotDimensionType

      The target collection type to move it to. Can be Row, Column or Filter.

    • index: number

      The index in the collection at which to add. This parameter is optional. If not set it will add it to the end of the collection.

    Returns void

  • Move value from its currently at specified index or at the end.

    this.grid.moveValue(value, 1);
    

    Parameters

    • value: IgrPivotValue

      The value that will be moved.

    • index: number

      The index in the collection at which to add. This parameter is optional. If not set it will add it to the end of the collection.

    Returns void

  • Notifies for dimension change.

    Parameters

    • regenerateColumns: boolean

    Returns void

  • Removes dimension from its currently collection.

    This is different than toggleDimension that enabled/disables the dimension. This completely removes the specified dimension from the collection.

    this.grid.removeDimension(dimension);
    

    Parameters

    Returns void

  • Removes value from collection.

    This is different than toggleValue that enabled/disables the value. This completely removes the specified value from the collection.

    this.grid.removeValue(dimension);
    

    Parameters

    Returns void

  • Toggles the dimension's enabled state on or off.

    The dimension remains in its current collection. This just changes its enabled state.

    this.grid.toggleDimension(dimension);
    

    Parameters

    Returns void

  • Parameters

    Returns void

  • Toggles the value's enabled state on or off.

    The value remains in its current collection. This just changes its enabled state.

    this.grid.toggleValue(value);
    

    Parameters

    Returns void

Properties

autoGenerateConfig: boolean

Gets/Sets whether to auto-generate the pivot configuration based on the provided data.

data: any[]

Gets/Sets the array of data that populates the component.

<igx-pivot-grid [data]="Data"></igx-pivot-grid>
defaultExpandState: boolean

Gets/Sets the default expand state for all rows.

emptyPivotGridTemplate: IgcRenderFunction<void>

Gets/Sets a custom template when pivot grid is empty.

pivotConfiguration: IgrPivotConfiguration

Gets/Sets the pivot configuration with all related dimensions and values.

rowDimensionHeaderTemplate: IgcRenderFunction<IgrColumnTemplateContext>
superCompactMode: boolean

Enables a super compact theme for the component.

valueChipTemplate: IgcRenderFunction<IgrPivotGridValueTemplateContext>

Gets/Sets a custom template for the value chips.