We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Show only the days of the current month in SfCalendar control

Is it possible to only show the days of the current month in the SfCalendar control? Right now it show few days from the previous month and few days from the next month based on how much can fit in the grid. I wish to just show dates for the current month.

Thanks!
Shaiket

1 Reply

MS Mariappan S Syncfusion Team April 15, 2015 12:36 PM UTC

Hi Shaiket,

Thank you for contacting Syncfusion support,

Can you please explain whether you are asking in WPF platform? If so please find the below solution for your requirement

In our WPF CalendarEdit control, we can change the visibility of next month and previous month dates using the Boolean properties “ShowNextMonthDays” and “ShowPreviousMonthDays” respectively. We have prepared a sample by disabling these two properties and it will display only the current month dates.

If your requirement is different from our solution please provide more information about your requirement.

Please download the sample form the below link.

Sample link: CalendarEditSample.zip

Please let us know if you need further assistance.

Regards,
Mariappan S.

Loader.
Live Chat Icon For mobile
Up arrow icon