Tab
A newer version of this page is available. Switch to the current version.

ASPxCalendar Class

Represents the calendar control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public class ASPxCalendar :
    ASPxEdit,
    ICalendarSharedPropertiesOwner
Public Class ASPxCalendar
    Inherits ASPxEdit
    Implements ICalendarSharedPropertiesOwner

The following members accept/return ASPxCalendar objects:

Library Related API Members
ASP.NET Controls and MVC Extensions ASPxViewNavigator.GotoDateCalendar
ASP.NET Bootstrap Controls BootstrapSchedulerViewNavigator.GotoDateCalendar

Remarks

The ASPxCalendar class represents a calendar control that allows end-users to select dates, and navigate through months and years.

ASPxCalendar_control.png

By default, the calendar control displays the days of the month, day headings for the days of the week, week numbers, a header (with the month name and year and links for moving to the next or previous month and year) and a footer (with buttons for setting the selected date to today or a null value). The appearance of the calendar control can be customized by setting the properties that control the style for different parts of the control. The following table lists the properties that specify the style for the different parts of the control.

Property Description
ASPxCalendar.ButtonStyle Defines the style for the calendar's button elements.
ASPxCalendar.DayHeaderStyle Defines the style for the calendar's section that displays the day of the week.
ASPxCalendar.DayOtherMonthStyle Defines the style for the days that don't belong to the displayed month.
ASPxCalendar.DaySelectedStyle Defines the style for the calendar's selected day.
ASPxCalendar.DayStyle Defines the style for the days displayed in the calendar.
ASPxCalendar.DayWeekendStyle Defines the style for the weekend dates in the calendar.
ASPxCalendar.FooterStyle Defines the style for the calendar's footer section.
ASPxCalendar.HeaderStyle Defines the style for the calendar's title heading.
ASPxCalendar.WeekNumberStyle Defines the style for the week number markers in the calendar.

Links, which reside within the calendar's header and provide the month and year navigation capabilities, can be represented by custom images using the properties listed below.

Property Description
ASPxCalendar.NextPeriodImage Defines the image for the link navigating to the next month.
ASPxCalendar.NextLargePeriodImage Defines the image for the link navigating to the next year.
ASPxCalendar.PrevPeriodImage Defines the image for the link navigating to the previous month.
ASPxCalendar.PrevLargePeriodImage Defines the image for the link navigating to the previous year.

Different parts of the calendar control can be shown or hidden. The following table lists the properties that control the visibility of the calendar's elements.

Property

Description

ASPxCalendar.ShowClearButton

Specifies whether the Clear button is displayed within the calendar's footer.

ASPxCalendar.ShowDayHeaders

Specifies whether the heading for the days of the week is displayed.

ASPxCalendar.ShowHeader

Specifies whether the calendar's title heading is displayed.