Hi,
I've implemented the DateRangePicker in our software and I noticed that the selection of the DateRangePicker has a slide different behavior to the Angular DateRangePicker.
This behavior is also reproducible in the demo website.
Scenario:
Select a range. Alter range to the new values. First, update '03-11-2019' -> '04-11-2019'. Second, update '09-11-2019' -> ''
First selection:
Start date: 03-11-2019
End date: 09-11-2019
Now I want to update this range to:
Expectation:
Start date: 04-11-2019
End date: 16-11-2019
Result:
Start date: 16-11-2019
End date: null
When I select the start date, it's updated as expected (04-11-2019) but selecting the new end date (16-11-2019), sets the a new start date instead of the end date. As described by the result values.
Hello, Maikel,
We have logged a bug in our public repository and I linked both items so the Feedback Portal will be updated accordingly when there are any changes in the GitHub issue when we get the change to into it.
Here is the GitHub issue for your reference:
https://github.com/telerik/kendo-ui-core/issues/5597
Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Hello, Maikel,
The jQuery Kendo UI DateRangePicker does have a different behaviour than the Angular component and also it differs from the React component. For example in React once selected the range cannot be extended - a new click starts a fresh range:
https://www.telerik.com/kendo-react-ui/components/dateinputs/daterangepicker/
Whilst the Angular component alternates start and end clicks to extend or shrink the range.
The Kendo UI widget on the other hand alternates the clicks inside the range - first click is start, second is end. If the click is outside the range a new range is started (the end date becomes the start).
I will discuss this behaviour with the team and get back to you if we intend to change it in the future but I will need a little more time than usual and can get back to you next Tuesday.
Kind Regards,
Alex Hajigeorgieva
Progress Telerik