Approved
Last Updated: 23 Aug 2019 07:41 by ADMIN
Created by: Umair
Comments: 0
Category: DateRangePicker
Type: Bug Report
1

### 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


Approved
Last Updated: 07 Jun 2019 08:00 by ADMIN
Created by: Nicolas
Comments: 1
Category: DateRangePicker
Type: Feature Request
0

Assuming the DateRangePicker as a date range set already like this by the model

@(Html.Kendo().DateRangePicker()
                            .Name("daterangepicker")
                            .Min(DateTime.UtcNow.AddYears(-25))
                            .Max(DateTime.UtcNow.AddYears(25))
                            .HtmlAttributes(new { style = "width: 100%", title = "Event's Date" })
                            .Range(r => r.Start(Model.StartDate).End(Model.EndDate))
                            .Events(e => e.Change("onChange"))
                        )

 

@Html.HiddenFor(model => model.StartDate

@Html.HiddenFor(model => model.EndDate)

<script>

function onChange() {
        var range = this.range();
        if (range.start && range.end) {
            $("#StartDate").val(kendo.toString(range.start, 'd'));
            $("#EndDate").val(kendo.toString(range.end, 'd'));
            //$("#StartDate").val(range.start);
            //$("#EndDate").val(range.end);
            $("#StartDate").trigger("change");
            $("#EndDate").trigger("change");
        }
    }

</script>

When opening the dataview to change the selection (range) it should open at the set range instead of today's date which might be years apart. We shouldn't have to create a script which BTW is not opening the dataview_current on theproper date either.

$(document).ready(function () {
        $("#daterangepicker").data("kendoDateRangePicker").dateView._current = new Date(@Model.StartDate.Year, @Model.StartDate.Month,@Model.StartDate.Day);
    });
Approved
Last Updated: 05 Jun 2019 08:29 by ADMIN
Created by: Nicolas
Comments: 0
Category: DateRangePicker
Type: Feature Request
0

When a range is pre-selected in the DateRangePicker the popup will open todays date view by default. 

Include an option that enables navigating to the selected range initially.

Approved
Last Updated: 10 Apr 2019 07:19 by ADMIN
Created by: Tony
Comments: 3
Category: DateRangePicker
Type: Feature Request
0

I am trying to configure the new DateRangePicker to chose ranges of months.  I tried the dojo in this reference document, but the dojo does not work.  I select the Month, but nothing happens.  https://docs.telerik.com/kendo-ui/api/javascript/ui/daterangepicker/configuration/depth

I want the result to show April 2019 to April 2019.  The control should return 4/1/2019 and 4/30/2019, if possible.