Overview

The SfCalendar is a control that allows you to select a date from the calendar and 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 complete customization option for the control.

Key features

  • Different views: Supports for month, year, decade, and century views to quickly select dates.

  • Date-range support: Provides maximum and minimum date support to prevent users from selecting dates within a specified range.

  • Globalization and localization: Supports for localized first day of the week, localized static text, and day names based on the culture.

  • Special dates: Supports for highlighting special dates with icons and descriptions.

  • Blackout dates: Supports for blocking certain dates from selection and user interaction. Separate styles can be applied to blackout dates.

  • Accessibility: Touch, keyboard, and mouse support 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

special date

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

Blackout dates

.
Cell customization Each individual cell appearance in SfCalendar can be

customized

by changing font, background, foreground, and border color.
Appearance customization Customizes each individual cell

appearance

. Changes the text and appearance of a date cell on-demand.
Navigation SfCalendar provides

navigation

support for different set of dates and different views through scrolling, clicking or touching the calendar header.