label String|Function|Object (default: null)

Adds a label before the input. If the input has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.

Example - create a label from a string

<select id="customers"></select>
<script>
$("#customers").kendoMultiSelect({
    dataTextField: "ContactName",
    dataValueField: "CustomerID",
    dataSource: {
        type: "odata",
        transport: {
            read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Customers"
        },
        group: { field: "Country" }
    },
  label: "Customers"
});
</script>

The function context (available through the keyword this) will be set to the widget instance.

Example - create a label from a function

<select id="customers"></select>
<script>
$("#customers").kendoMultiSelect({
    dataTextField: "ContactName",
    dataValueField: "CustomerID",
    dataSource: {
        type: "odata",
        transport: {
            read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Customers"
        },
        group: { field: "Country" }
    },
  label: function() {
      return "Customers";
  }
});
</script>
In this article