When clearing the contents of part of a Kendo UI DateRangePicker with a clear button, the change event does not trigger.
The Change event should fire when clear button is pressed.
Subscribing to a mousedown event on the clear button, and manually triggering the change event. It will require a setTimeout due to timing purposes:
//Mousedown event on clear button
$("span.k-clear-value").on("mousedown", function(e){
//set timeout for timing purposes
setTimeout(function(){
//reference DateRangerPicker and trigger Change event
var dateRange = $("#daterangepicker").data("kendoDateRangePicker");
dateRange.trigger("change");
}, 200);
});
Hi,
There might be an issue with the DateRangePicker - when dates are removed manually from inputs (e.g., select, then delete) and something like month/day/year is displayed, incorrect dates are returned when I use API.
var range = daterangepicker.range()
The issue can be reproduced in the DateRangePicker demo page. Steps to reproduce:
Is it a bug or I do something wrong? I am using 2024.1.3016. Is it fixed in the latest version? If not - any timeframe when it could be fixed?
As of now I am using workaround - if an input value contains a letter, the then I assume date = null. Otherwise, I keep the value from range object. Is there a better way to work around the issue?
Thank you.
Regards,
Aleksey Gasnikov
When the autoClose option is set to false the range set in the DatePicker is longer so that the end date of the selected range is not visible, and a new range can not be selected.
The end date is never changed
It should be possible to select a new end of the range.
Reproducable in the following Dojo:
https://dojo.telerik.com/@foxontherock/UKureVOy/2
Open the daterangepicker and make a selection, for example 10th of December to 15th of December(10.12 - 15.12).
Open the daterangepicker and make another selection 12th of December to 17th of December(12.12 - 17.12).
Only the 17th is selected instead of the entire 12-17 range.
Dear Kendo Support Team,
we are using Kendo UI in our ASP.NET MVC application. We want to remove the values from DateRangePicker. The dates are removed from inputs but the calendar keeps the previous value highlighted when we move back and forth between the months.
Example code: https://dojo.telerik.com/ATuyAWuF/3
Best regards,
Peter
The change event of the DateRangePicker fires three times every time you change an input field.
This is a regression in Kendo v2019.2.514
The change event fires three times on every input change, for a total of six.
The change event should only fire once when a date is selected.
### Bug report
### Reproduction of the problem
_(bug report only)_
When start and depth are configured on a DateRangePicker, users are unable to select а range.
Dojo: https://dojo.telerik.com/oWUPosiP
### Expected/desired behavior
The expected is users to be able to select range as it is currently in DatePicker.
Dojo: https://dojo.telerik.com/oKIyeLEJ
I'm observing this issue with the Demo version of the DateRangePicker: https://demos.telerik.com/kendo-ui/daterangepicker/index
The End Date is not set and the Start Date changes to the selected End Date.