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

Templates

Updated on Oct 15, 2026

The DropDownList provides full control over the rendering of items, selected values, and popup headers by using Kendo UI templates.

For a complete example, refer to the demo on customizing the DropDownList templates.

The DropDownList supports the following templates:

Item Templates

The item template manages the way the list items of a DropDownList are rendered.

Example
View Source
    <input id="dropdownlist" />
    <!-- Define markup rendered for each option in the popup. -->
    <script id="scriptTemplate" type="text/x-kendo-template">
        ContactName: #:data.ContactName#, CustomerID: #:data.CustomerID#
    </script>

    <!-- Initialize the DropDownList with this item template. -->
    <script>
        $(document).ready(function() {
            $("#dropdownlist").kendoDropDownList({
                template: $("#scriptTemplate").html(),
                dataTextField: "ContactName",
                dataValueField: "CustomerID",
                dataSource: {
                    transport: {
                        read: {
                            url: "https://demos.telerik.com/service/v2/core/Customers"
                        }
                    }
                }
            });
        });
    </script>

Value Templates

The value template manages the way the selected value of a DropDownList is rendered.

Value templates must consist of inline HTML elements only.

Example
View Source
    <input id="dropdownlist" />
    <!-- Keep selected-value template content to inline HTML elements. -->
    <script id="valueTemplate" type="text/x-kendo-template">
        ContactName: #:data.ContactName#
    </script>

    <!-- Apply this markup to the selected value, not each popup item. -->
    <script>
        $(document).ready(function() {
            $("#dropdownlist").kendoDropDownList({
                valueTemplate: $("#valueTemplate").html(),
                dataTextField: "ContactName",
                dataValueField: "CustomerID",
                dataSource: {
                    transport: {
                        read: {
                            url: "https://demos.telerik.com/service/v2/core/Customers"
                        }
                    }
                }
            });
        });
    </script>

Header Templates

The header template manages the way the popup header of a DropDownList is rendered.

Example
View Source
    <input id="dropdownlist" />
    <!-- Define content displayed above the popup list. -->
    <script id="headerTemplate" type="text/x-kendo-template">
        <strong>Header</strong>
    </script>

    <!-- Use this template for the popup header. -->
    <script>
        $(document).ready(function() {
            $("#dropdownlist").kendoDropDownList({
                headerTemplate: $("#headerTemplate").html(),
                dataTextField: "ContactName",
                dataValueField: "CustomerID",
                dataSource: {
                    transport: {
                        read: {
                            url: "https://demos.telerik.com/service/v2/core/Customers"
                        }
                    }
                }
            });
        });
    </script>

The footer template manages the way the popup footer of a DropDownList is rendered. The footer is re-rendered on every change of the Data Source. The context of the template is the widget itself.

Example
View Source
    <input id="dropdownlist" />
    <!-- The template context is the widget instance. -->
    <script id="footerTemplate" type="text/x-kendo-template">
        Total <strong>#: instance.dataSource.total() #</strong> items found
    </script>

    <!-- Re-render the footer whenever the DataSource changes. -->
    <script>
        $(document).ready(function() {
            $("#dropdownlist").kendoDropDownList({
                footerTemplate: $("#footerTemplate").html(),
                dataTextField: "ContactName",
                dataValueField: "CustomerID",
                dataSource: {
                    transport: {
                        read: {
                            url: "https://demos.telerik.com/service/v2/core/Customers"
                        }
                    }
                }
            });
        });
    </script>

No-Data Templates

The DropDownList widget displays noDataTemplate in the popup when the data source is empty.

When the noDataTemplate option is defined, the DropDownList always opens the popup element.

Example
View Source
    <input id="dropDownList" />
    <!-- Define content shown when no data is available. -->
    <script id="noDataTemplate" type="text/x-kendo-template">
        <strong>No Data!</strong>
    </script>

    <!-- Defining noDataTemplate opens the popup even for an empty data source. -->
    <script>
        $(document).ready(function() {
            $("#dropDownList").kendoDropDownList({
                noDataTemplate: $("#noDataTemplate").html(),
                dataTextField: "ContactName",
                dataValueField: "CustomerID",
                dataSource: {
                    transport: {
                        read: {
                            url: "https://demos.telerik.com/service/v2/core/Customers"
                        }
                    }
                }
            });
        });
    </script>

See Also