New to KendoReactStart a free 30-day trial

Represents the props of the KendoReact PivotGrid component.

Definition

Package:@progress/kendo-react-pivotgrid

Properties

cell?

CustomComponent​<PivotGridCellProps>

Overrides the default cell component.

The default component is: PivotGridCell.

Example:
jsx
<PivotGrid cell={(props) => <CustomCell {...props} />} />

Sets the className property of the top-most element of the PivotGrid in addition to the default k-pivotgrid class.

Example:
jsx
<PivotGrid className="custom-class" />

column?

CustomComponent​<PivotGridColumnProps>

Overrides the default column component.

The default component is: PivotGridColumn.

Example:
jsx
<PivotGrid column={(props) => <CustomColumn {...props} />} />

The configuration of the column axes.

Example:
jsx
<PivotGrid columnAxes={[{ name: 'Category', expand: true }]} />

Overrides the default column-headers headerCell component.

The default component is: PivotGridHeaderCell.

Example:
jsx
<PivotGrid columnHeadersCell={(props) => <CustomHeaderCell {...props} />} />

Overrides the default column-headers column component.

The default component is: PivotGridColumn.

Example:
jsx
<PivotGrid columnHeadersColumn={(props) => <CustomColumn {...props} />} />

Overrides the default column-headers row component.

The default component is: PivotGridRow.

Example:
jsx
<PivotGrid columnHeadersRow={(props) => <CustomRow {...props} />} />

Sets the columns data of the PivotGrid.

Example:
jsx
<PivotGrid columns={[['Category', 'Subcategory']]} />

Sets the data of the PivotGrid.

Example:
jsx
<PivotGrid data={[{ field: 'value', data: 100 }]} />

Overrides the default data column component.

The default component is: PivotGridColumn.

Example:
jsx
<PivotGrid dataColumn={(props) => <CustomColumn {...props} />} />

dataRow?

ComponentType​<PivotGridRowProps>

Overrides the default data row component.

The default component is: PivotGridRow.

Example:
jsx
<PivotGrid dataRow={(props) => <CustomRow {...props} />} />

Overrides the default headerCell component.

The default component is: PivotGridHeaderCell.

Example:
jsx
<PivotGrid headerCell={(props) => <CustomHeaderCell {...props} />} />

id?

string

Sets the id property of the top-most element of the PivotGrid.

Example:
jsx
<PivotGrid id="pivotgrid-id" />

If set to true, the user can use dedicated shortcuts to interact with the PivotGrid. By default, navigation is disabled.

Default:

false

Example:
jsx
<PivotGrid navigatable={true} />

A callback, fired whenever the columnAxes property should change.

Parameters:eventPivotGridAxesChangeEvent
Example:
jsx
<PivotGrid onColumnAxesChange={(event) => console.log(event.value)} />

A callback, fired whenever the rowAxes property should change.

Parameters:eventPivotGridAxesChangeEvent
Example:
jsx
<PivotGrid onRowAxesChange={(event) => console.log(event.value)} />

row?

CustomComponent​<PivotGridRowProps>

Overrides the default row component.

The default component is: PivotGridRow.

Example:
jsx
<PivotGrid row={(props) => <CustomRow {...props} />} />

The configuration of the row axes.

Example:
jsx
<PivotGrid rowAxes={[{ name: 'Region', expand: true }]} />

Overrides the default row-headers headerCell component.

The default component is: PivotGridHeaderCell.

Example:
jsx
<PivotGrid rowHeadersCell={(props) => <CustomHeaderCell {...props} />} />

Overrides the default row-headers column component.

The default component is: PivotGridColumn.

Example:
jsx
<PivotGrid rowHeadersColumn={(props) => <CustomColumn {...props} />} />

Overrides the default row-headers row component.

The default component is: PivotGridRow.

Example:
jsx
<PivotGrid rowHeadersRow={(props) => <CustomRow {...props} />} />

Sets the rows data of the PivotGrid.

Example:
jsx
<PivotGrid rows={[['Region', 'Country']]} />

style?

CSSProperties

Sets the style property of the top-most element of the PivotGrid.

Example:
jsx
<PivotGrid style={{ height: '500px' }} />

tabIndex?

number

Sets the tabIndex property of the top-most element of the PivotGrid.

Example:
jsx
<PivotGrid tabIndex={0} />

webMcp?

boolean | WebMcpProps

Enables Web MCP tool registration for this component. Requires a parent WebMcpProvider from @progress/kendo-react-webmcp.