Automatic Correction
Starting with Telerik UI for ASP.NET Core R3 2024, the DateTimePicker component provides a way to disable the built-in AutoAdjust
feature.
By default, when you have Min
and Max
values configured, the component will auto-correct the user input if it is not in the min/max range. The auto-corrected value will be either the Min
or the Max
value you have set for the component.
@(Html.Kendo().DateTimePicker()
.Name("datetimepicker")
.DateInput()
.AutoAdjust(false)
)
@addTagHelper *, Kendo.Mvc
<kendo-datetimepicker name="datetimepicker"
auto-adjust="false" date-input="true">
</kendo-datetimepicker>