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?
Thank you
Lucy
3 Answers, 1 is accepted
0
Alex Hajigeorgieva
Telerik team
answered on 08 Apr 2019, 08:20 AM
Hello, Lucy,
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:
We actually have an open feature request that you can vote for. The most popular feature requests are considered for implementation in the planning process:
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.
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?
Thank you
Lucy
0
Alex Hajigeorgieva
Telerik team
answered on 11 Apr 2019, 11:59 AM
Hello, Lucy,
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:
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.