We have a DatePicker which has the 'Year' view so you can only select months. We wish to only allow the user to select Quarters (March, June, Sept & Dec).
I can only seem to disable by days of week. Is there anyway to disable by months of year?
3 Answers, 1 is accepted
answered on 08 Apr 2019, 08:20 AM
The Kendo UI Calendar and DatePickers do not have a built-in way to disable months in year view, however, it is possible to do that programmatically when the widget triggers its open event, for example:
This fix works fine on the first 'year' view but if you move to the following or previous year, those months aren't disabled.
Is there another approach?
answered on 11 Apr 2019, 11:59 AM
Thank you for pointing out the issue during navigation. To get the same approach to work for both the initial opening of the Kendo UI DatePicker calendar as well as during the calendar navigation, we need to execute the same logic in the calendar navigate event: