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

Label

configuration

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

label

String|Function|Object

Default: null

<input id="dateinput" />
<script>
    $("#dateinput").kendoDateInput({
        label: "Description"
    })
</script>

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

<input id="dateinput" />
<script>
    $("#dateinput").kendoDateInput({
            label: function() {
                return "First name";
            }
    })
</script>

label.content

String|Function

Sets the inner HTML of the label.

Default: ""

<input id="dateinput" />
<script>
    $("#dateinput").kendoDateInput({
            label: {
                content: "Date"
            }
    })
</script>

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

<input id="dateinput" />
<script>
    $("#dateinput").kendoDateInput({
            label: {
                content: function() {
                    return "Date";
                }
            }
    })
</script>

If set to true, the widget will be wrapped in a container that will allow the floating label functionality.

Important: The value method does not trigger the focusout event of the dateinput.

This can affect the floating label functionality. You can overcome this behavior by manually invoking the refresh method of the Floating Label: $("#dateinput").data("kendoDateInput").label.floatingLabel.refresh();

Default: false

<input id="dateinput" />
<script>
    $("#dateinput").kendoDateInput({
            label: {
                content: "Date",
                floating: true
            }
    })
</script>
In this article
labellabel.contentlabel.floating
Not finding the help you need?
Contact Support