New to Kendo UI for AngularStart a free 30-day trial

ExpandDetailsDirective

Controls the expanded state of master detail rows in the Grid. Use this directive to manage which detail rows are expanded or collapsed. (see example)

typescript
<kendo-grid [kendoGridExpandDetailsBy]="expandDetailsKey" [expandedDetailKeys]="expandedDetailKeys"></kendo-grid>

Selector

[kendoGridExpandDetailsBy]

Export Name

Accessible in templates as #kendoExpandDetailsInstance="kendoGridExpandDetailsBy"

Inputs

NameTypeDefaultDescription

kendoGridExpandDetailsBy

string | (dataItem: any) => any

Sets the item key stored in the expandedDetailKeys collection. Accepts a property name or a function that returns a unique key for each data item. (See example).

expandedDetailKeys

any[]

Holds the collection of expanded detail row keys. Set this property to control which detail rows are expanded.

initiallyExpanded

boolean

false

Specifies if detail rows are expanded by default. When set to true, items in the expandedDetailKeys collection are collapsed, and all others are expanded.

Events

NameTypeDescription

expandedDetailKeysChange

EventEmitter<any[]>

Fires when the expandedDetailKeys collection changes.

In this article
SelectorExport NameInputsEvents
Not finding the help you need?
Contact Support