Unplanned
Last Updated: 04 Sep 2024 10:58 by Irvin
Irvin
Created on: 04 Sep 2024 10:58
Category: DateRangePicker
Type: Bug Report
0
DateRangePicker cannot be initialized with a null End value

Bug report

There is a difference in behavior between the wrappers (MVC and Core) and the Kendo UI for jQuery DateRangePicker. See the following dojo example, which shows initializing the component with a null value for the End date: https://dojo.telerik.com/IkAMUJoG/2

In contrast, the MVC and Core helpers display the Start value as End value.

Reproduction of the problem

  1. Run this REPL: https://netcorerepl.telerik.com/GoaDYoFu45uqxdEF31

Current behavior

The End value is the same as the Start value.

Expected/desired behavior

The End value is null.

Consider also the scenario, where the Range configuration is not set and the component gets the Start and End values from the model, and the value of the EndDate field is null:

@(Html.Kendo().DateRangePickerFor(m => m.StartDate, m => m.EndDate )
    .Name("dateRangePicker")
)

Environment

  • Kendo UI version: 2024.3.806
  • jQuery version: x.y
  • Browser: [all]
0 comments