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

Filter DropDownList by Multiple Properties

Updated on Dec 10, 2025

Environment

ProductProgress® Kendo UI® DropDownList for jQuery
Operating SystemAll
BrowserAll
Preferred LanguageJavaScript

Description

How can I filter the DropDownList items by multiple properties?

Solution

  1. Prevent the default behavior of the filter event.
  2. Use the dataSource filter method to apply the custom filtering.
Example
View Source
	<input id="customers" style="width: 100%;"/>            

    <script>
        $(document).ready(function() {
            $("#customers").kendoDropDownList({
                dataTextField: "ContactName",
                dataValueField: "CustomerID",
              	filter: "contains",
                template: `<h3>Name: #: data.ContactName #</h3>
              							<h4>ID: #: data.CustomerID #</h4>`,
                dataSource: {
                    transport: {
                        read: {
                            url: "https://demos.telerik.com/service/v2/core/Customers",
                        }
                    }
                },
              	filtering: function(ev){
                	var filterValue = ev.filter != undefined ? ev.filter.value : "";
                    ev.preventDefault();

                  this.dataSource.filter({
                    logic: "or",
                    filters: [
                      {
                        field: "ContactName",
                        operator: "contains",
                        value: filterValue
                      },
                      {
                        field: "CustomerID",
                        operator: "contains",
                        value: filterValue
                      }
                    ]
                  });
                }
            });
        });
    </script>
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support