Class CalendarView
Specifies the different view levels available for calendar components.
Inheritance
Namespace: Syncfusion.Blazor.Calendars
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class CalendarView : Enum
Remarks
The CalendarView enum defines the hierarchical view levels that can be displayed in calendar components such as SfCalendar
, SfDatePicker
, and SfDateTimePicker
.
Users can navigate between these views to select dates at different levels of granularity.
Examples
Setting the calendar view:
<SfCalendar TValue="DateTime" View="CalendarView.Year"></SfCalendar>
Fields
Decade
Displays the calendar in decade view, showing a range of years within a decade.
Declaration
public const CalendarView Decade
Field Value
Type |
---|
CalendarView |
Remarks
The decade view provides the highest level of navigation, allowing users to select entire years. This view is typically used for quick navigation across multiple years or when year-level selection is needed.
Month
Displays the calendar in month view, showing individual days of a specific month.
Declaration
public const CalendarView Month
Field Value
Type |
---|
CalendarView |
Remarks
This is the default and most detailed view level, allowing users to select specific dates within a month. The month view displays all days in a grid format with day names as headers.
Year
Displays the calendar in year view, showing all months of a specific year.
Declaration
public const CalendarView Year
Field Value
Type |
---|
CalendarView |
Remarks
In year view, users can select entire months rather than individual dates. This view is useful when month-level selection is required or when navigating to different months quickly.