Components
    • Animation
    • Buttons
    • Charts
    • Common Utilities
    • Conversational UI
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Grid
    • Indicators
    • Inputs
    • Labels
    • Layout
    • ListBox
    • ListView
    • Notification
    • PDF Processing
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • Sortable
    • Tooltip
    • TreeList
    • TreeView
    • Upload
    Sample Applications
    Styling & Themes
    Common Features
    Project Setup
    Changelog

Sorting

The KendoReact PivotGrid component supports sorting through the usePivotOLAPService hook or the PivotOLAPService higher-order component.

The sort property is a JavaScript array of SortDescriptor objects containing the following keys:

  • fieldThe name of the dimension, for example, [Date].[Calendar].
  • dirThe direction of the sorting.

All inner members of the selected dimension will also be sorted.

Configuration

To set an initial sort, pass the defaultSort property to the usePivotOLAPService hook or the PivotOLAPService higher-order component.

The following example demonstrates the basic configuration of the default sorting.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?