Angular TreeList Filtering Basics
The TreeList filtering feature enables you to display only those TreeList records that meet specific filter criteria.
You can enable the filtering feature by using two methods:
- The Data-Binding Directives—Allow you to implement filtering (or other data operations) with less code.
- Manual Filtering—Provides more control when implementing the filtering feature.
<kendo-treelist [kendoTreeListFlatBinding]="data" [filterable]="true" ... > ... </kendo-treelist>
To learn more about the data binding directives and to understand how it works under the hood, see the data operations with the DataBinding directives article.
The following example demonstrates how to enable filtering using
The TreeList supports three filtering modes that display different filtering UIs.
|Filter row (default)||Set the ||Filter controls are rendered below each column header cell. The data is filtered automatically once the user stops typing.|
|Filter menu||Set the ||A filter icon appears inside the column header. The data is filtered when the user clicks the Filter button.|
|Filter menu-row||Set the ||A combination of a filter menu and filter row.|
The following example demonstrates the available filter modes of the TreeList.
In its column filters, the TreeList provides a built-in filtering UI for all basic data types (
boolean). You can set the filtering UI type through the filter input property of each column.
The text filter is the default filter type. Its UI is a
The numeric filtering UI is a
The date filtering UI is the
The boolean filtering UI utilizes the