label.floating Boolean (default: false)

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 input. This could affect the floating label functionality. You can overcome this behavior by manually invoking the refresh method of the Floating Label: $("#textbox").data("kendoTextBox").floatingLabel.refresh();

Example - create a floating label

<input id="textbox" />
<script>
    $("#textbox").kendoTextBox({
        label: {
            content: "First name",
            floating: true
        }
    });
</script>
In this article
Not finding the help you need? Improve this article