enforceMinLength Boolean
(default: false)
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.
Example - enforce minLength
<select id="multiselect"></select>
<script>
$("#multiselect").kendoMultiSelect({
placeholder: "Select products...",
dataTextField: "ProductName",
dataValueField: "ProductID",
autoBind: false,
minLength: 3,
enforceMinLength: true,
dataSource: {
type: "odata",
serverFiltering: true,
transport: {
read: {
url: "//demos.telerik.com/kendo-ui/service/Northwind.svc/Products",
}
}
},
value: [
{ ProductName: "Chang", ProductID: 2 },
{ ProductName: "Uncle Bob's Organic Dried Pears", ProductID: 7 }
]
});
</script>