New to KendoReact? Start a free 30-day trial

The group descriptor used by the groupBy method.

Definition

Package:@progress/kendo-data-query

Syntax:

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

Properties

The aggregates which are calculated during grouping.

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

Parameters:aany

The first element for comparison.

bany

The second element for comparison.

Returns:

number

dir?

"asc" | "desc"

The sort order of the group.

field

string

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