New to Kendo UI for Angular? Start a free 30-day trial

GroupKey

Represents the default format in which the the kendoGridExpandGroupBy directive persists the expanded group keys (see example).

Determining whether a group is expanded or collapsed is done by comparing all of the following field values.

field

string

Represents the field property value of the current group item.

parentGroupKeys?

Array<{ field: string; value: any; }>

An array of { field: string, value: any } items indicating all parent groups of the current one, staring from the direct parent group all the way to the root level one.

The following example demonstrates how to provide expandedGroupKeys. The productCategory group provides as parentGroupKeys first the group descriptor for its direct parent group, and then the group descriptors for the ancestor groups.

public expandedGroupKeys: Array<GroupKey> = [
   { field: 'location', value: 'Sofia' },
   { field: 'inStock', value: true, parentGroupKeys: [{ field: 'location', value: 'Sofia' }] },
   { field: 'productCategory', value: 'Bevarages', parentGroupKeys: [{ field: 'inStock', value: true }, { field: 'location', value: 'Sofia' }] }
];

value

any

Represents the value property value of the current group item.

In this article

Not finding the help you need?