I am wondering if it is possible to configure or subclass sfCalendar for the following use case:
A registration system needs to accept Q1 (Jan, Feb, Mar) reservation dates for years 2020 through 2025. The months for Q2-Q4 (Apr-Dec) should not be displayed in the control. For example, the 'next' date (shown in the UI) after Mar 31 2020 should be Jan 01 2021.
Is there a way to hide or no-display the dates in Q2-Q4 ?
KPKanniyappan Panneer Selvam Syncfusion Team September 2, 2019 08:36 AM
Thanks for contacting Syncfusion support.
We have checked your query “Remove blacked out months from being displayed in sfCalendar navigation” at our end. We have prepared the sample based on your requirement. In our sample, we have handled the blackout month range between April to December from SfCalendar navigation using Navigating event and navigated SfCalendar date to next year January using GotoDate method. Please find the code snippet and sample for the same.
if (e.NewValue.Start >= new DateTime(year, 04, 01) && e.NewValue.End <= new DateTime(year, 12, 31))