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

Filtering

The ComboBox provides a built-in filtering mechanism, a server-side filtering functionality, a filtering directive, and options for setting the minimum filter length.

Basic Configuration

To enable the filtering functionality, set the filterable property to true.

On every user modification of the input value, the ComboBox triggers a filterChange event. The event argument contains the typed string value that you can use to filter the source.

Change Theme
Theme
Loading ...

To filter the data after a delay, use a similar implementation. You can toggle the loading property and provide the user with a visual indication of the filtering process.

Change Theme
Theme
Loading ...

Server-Side Filtering

The following example demonstrates how to use the filter value to create the appropriate query string, required for filtering the data on the server.

Change Theme
Theme
Loading ...

Minimum Filter Length

The following example demonstrates how to update the data and open the drop-down list of the ComboBox only after typing a minimum number of characters.

Change Theme
Theme
Loading ...

Built-in Directive

When the entire set of data is available on the client, you can use the built-in kendoDropDownFilter directive to filter the data on user input. To configure the kendoDropDownFilter directive, provide a DropDownFilterSettings object to it. DropDownFilterSettings enables you to set the case sensitivity of the performed search through the caseSensitive property and the search logic operator which provides the startsWith and contains options.

It is optional to provide the DropDownFilterSettings configuration object. By default, the kendoDropDownFilter directive performs a case-insensitive search with the startsWith operator.

Change Theme
Theme
Loading ...