FilterExpandSettings
Interface
Configures the auto-expansion behavior of nodes when filtering the TreeView.
Definition
Package:@progress/kendo-angular-treeview
Properties
expandedOnClear?
"none" | "all" | "initial" | "unchanged"
Determines which nodes should remain expanded when the filter is cleared. The possible values are:
"none"—Collapse all nodes."all"—Expand all nodes."initial"—Restore the expanded state from before filtering."unchanged"—Leave the expanded state unchanged.
Default:
"none"
expandMatches?
boolean
Determines whether matching nodes expand to display their children.
Only applicable in "lenient" filter mode.
Default:
false
maxAutoExpandResults?
number
The maximum number of filter results that will be auto-expanded.
If the number of results exceeds this value, the expanded state will be reverted according to the expandedOnClear setting.
The default value of -1 allows any number of results to be auto-expanded.
Default:
-1