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 datetimepicker. This can affect the floating label functionality. To overcome this behavior, manually invoke therefresh
method of the Floating Label:$("#datetimepicker").data("kendoDateTimePicker").label.floatingLabel.refresh();
Example - create a floating label
<input id="datetimepicker" />
<script>
$("#datetimepicker").kendoDateTimePicker({
label: {
content: "Date",
floating: true
}
})
</script>