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

ExpandDirective

A directive which manages the expanded state of the TreeView. (see example).

Selector

[kendoTreeViewExpandable]

Inputs

NameTypeDefaultDescription

expandedKeys

any[]

Defines the collection that will store the expanded keys.

expandBy

string | (context: TreeItem) => any

Defines the item key that will be stored in the expandedKeys collection.

expandOnFilter

boolean | FilterExpandSettings

false

Whether or not to auto-expand the nodes leading from the root node to each filter result. To fine-tune this behavior, pass a FilterExpandSettings object to this input.

Events

NameTypeDescription

expandedKeysChange

EventEmitter<any[]>

Fires when the expandedKeys collection was updated.

In this article

Not finding the help you need?