Windows Forms Calendar (SfCalendar) Overview
24 May 20232 minutes to read
The SfCalendar is a control that allows you to select a date from calendar, and it provides various customization options for the calendar. This provides multiple views of the month, year, decade, and century, so that dates can be selected easily. The SfCalendar supports multiple selection and provides complete customization options to the control.
Key features
Different views - Supports month, year, decade, and century views to quickly select a date.
Date-range support - Provides maximum and minimum dates support to prevent users from selecting dates within a specified range.
Globalization and localization - Supports localizing the first day of a week, localizing static text, and day names based on the culture.
Special dates - Supports highlighting special dates with icons and descriptions.
Blackout dates - Supports blocking a certain dates from selection and user interaction. Separate styles can be applied to blackout dates.
Accessibility - Provides touch, keyboard, and mouse supports to make applications available to a wide variety of users.
Testing - Provides QTP add-in that contains custom libraries, which helps QTP to recognize SfCalendar.
Choose between different calendar controls
Syncfusion WinForms suite comes up with following different calendars namely:
SfCalendar
The SfCalendar control provides multiple views of month, year, decade, and century: the dates will be selected easily. This provides easy date selection using keyboard, mouse, and touch interactions. This also supports selecting multiple date, highlighting special dates, and complete customization options.
MonthCalendarAdv
The MonthCalendarAdv control allows selecting the date at runtime and various customization options for the calendar. This also supports user interface options such as multiple selection, context menu, globalization, and more.
SfCalendar vs MonthCalendarAdv
Both SfCalendar and MonthCalendarAdv controls are used for the same purposes. But, the SfCalendar control offers rich set of features over MonthCalendarAdv. When cell customization and easy navigation through year, decade, and century views are needed, use SfCalendar.
You can see some of the specific API differences between SfCalendar and MonthCalendarAdv as follows.
SfCalendar | MonthCalendarAdv | Description |
---|---|---|
SelectedDate | Value | Indicates the current date of calendar. |
MaxDate | MaxValue | Specifies the maximum selectable date by the calendar. |
MinDate | MinValue | Specifies the minimum selectable date by the calendar. |
ShowHorizontalSplitter, ShowVerticalSplitter | GridLines | To change the border style of calendar. |
DrawCell | DateCellQueryInfo | To highlight or customize dates to mention the special date on-demand. |
The following list of features in SfCalendar over MonthCalendarAdv are as follows.
Feature | Description |
---|---|
Special dates | Highlights the with icons and descriptions. Customizes the position of icon and text. |
Blackout dates | Blocks certain dates from selection and user interaction. Applies separate style for . |
Cell customization | Each individual cell appearance in SfCalendar can be by changing font, background, foreground, and border color. |
Appearance customization | Customizes each individual cell . Changes the text and appearance of a date cell on-demand. |
Navigation | SfCalendar provides support for different set of dates and different views through scrolling, clicking or touching the calendar header. |