This is a migrated thread and some comments may be shown as answers.

Select Month and Year Only (No Day)

1 Answer 360 Views
DateRangePicker
This is a migrated thread and some comments may be shown as answers.
Hyong
Top achievements
Rank 1
Hyong asked on 23 Aug 2019, 04:09 PM

Hello, I was wondering if it was possible to to the use DateRangePicker for selecting a range of months instead of days. I currently have the following code:

@(Html.Kendo().DateRangePicker()
                                  .Name("MonthlyDatePicker")
                                  .HtmlAttributes(new { style = "width: 100%" })
                                  .Events(e => e.Change("onMonthlyChange"))
                                  .Start("year")
                                  .Depth("year")
                                  .Format("MM yyyy")
                                )

 

This code appears the way I want it to but does not allow the user to select a month. Any help is much appreciated. Thanks

 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 27 Aug 2019, 08:46 AM

Hello Hyong,

 

The behavior you describe is logged as an issue in our GitHub portal and the developers will address it as soon as possible. You can monitor its status below:

https://github.com/telerik/kendo-ui-core/issues/5233

 

Until the issue has been fixed I am afraid that selecting a date when the Start and Depth options are set to year would not be be possible. I apologize for any inconvenience this may cause you.

 

Regards,
Viktor Tachev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DateRangePicker
Asked by
Hyong
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or