• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Indicators
    • Inputs
    • Labels
    • Layout
    • ListBoxupdated
    • ListView
    • Map
    • Notification
    • OrgChart
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheet
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeView
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

GroupDescriptor

The group descriptor used by the groupBy method.

const groupDescriptor: GroupDescriptor[] = [
  {
    field: 'UnitsInStock',
    dir: 'asc',
    aggregates: [
      { field: 'UnitsInStock', aggregate: 'sum' },
      { field: 'UnitPrice', aggregate: 'average' },
    ],
  },
];

aggregates? Array<AggregateDescriptor>

The aggregates which are calculated during grouping.

compare? (a: any, b: any) => number

A custom function that defines the sort order of the group.

dir? "asc" | "desc"

The sort order of the group.

field string

The data item field by which the data will be grouped.

In this article

Not finding the help you need?