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

EnforceMinLength

configuration

If set to true the widget will not show all items when the text of the search input cleared. By default, the widget shows all items when the text of the search input is cleared. Works in conjunction with minLength.

Default: false

<input id="dropdowntree" />

<script>
    var dataSource = new kendo.data.HierarchicalDataSource({
        transport: {
            read: {
                url: "https://demos.telerik.com/service/v2/core/Employees"
            }
        },
        schema: {
            model: {
                id: "EmployeeId",
                hasChildren: "HasEmployees"
            }
        }
    });

    $("#dropdowntree").kendoDropDownTree({
        dataSource: dataSource,
        dataTextField: "FullName",
        dataValueField: "EmployeeId",
        filter: 'startswith',
        minLength: 3,
        loadOnDemand: false,
        enforceMinLength: true,
    });
</script>
Not finding the help you need?
Contact Support