[]
The Calendar control displays a one-month calendar and allows users to select a date.
public class Calendar : InputBase, IHtmlString, ITemplate
Name | Description |
---|---|
Calendar(HtmlHelper, string) | Creates one Calendar instance. |
Name | Description |
---|---|
DisplayMonth | Gets or sets the month displayed in the calendar. |
FirstDayOfWeek | Gets or sets a value that represents the first day of the week, the one displayed in the first column of the calendar. |
FormatDayHeaders | Gets or sets the format used to display the headers above the days in month view. |
FormatDays | Gets or sets the format used to display the days in month view. |
FormatMonths | Gets or sets the format used to display the months in year view. |
FormatYear | Gets or sets the format used to display the year above the months in year view. |
FormatYearMonth | Gets or sets the format used to display the month and year above the calendar in month view. |
HandleWheel | Gets or sets a value that determines whether the user can change the current displayMonth using the mouse wheel. |
IsReadOnly | Gets or sets a value that indicates whether the user can modify the control value using the mouse and keyboard. |
ItemFormatter | Gets or sets a formatter function to customize dates in the calendar. |
ItemValidator | Gets or sets the name of a validator javascript function to determine whether dates are valid for selection. |
Max | Gets or sets the latest date that the user can select in the calendar. |
Min | Gets or sets the earliest date that the user can select in the calendar. |
MonthCount | Gets or sets the number of months to display within the calendar. |
MonthView | Gets or sets a value indicating whether the calendar displays a month or a year. |
OnClientDisplayMonthChanged | Occurs after the DisplayMonth property changes. |
OnClientFormatItem | Occurs when an element representing a day in the calendar has been created. |
OnClientRangeChanged | Occurs when the value of the rangeEnd property changes into a non-null value, indicating a data range has been selected. |
OnClientRangeEndChanged | Occurs when the value of the RangeEnd property changes |
OnClientValueChanged | Occurs after a new date is selected. |
RangeEnd | Gets or sets the last selected date in a range selection. |
RangeMax | Gets or sets the maximum length allowed when editing date ranges. |
RangeMin | Gets or sets the minimum number of days allowed when editing date ranges. |
RepeatButtons | Gets or sets a value that determines whether the calendar buttons should act as repeat buttons, firing repeatedly as the button remains pressed. |
SelectionMode | Gets or sets a value that indicates whether users can select days, months, or no values at all. |
ShowHeader | Gets or sets a value indicating whether the control displays the header area with the current month and navigation buttons. |
ShowMonthPicker | Gets or sets a value that determines whether the calendar should display a list of months when the user clicks the header element on the month calendar. |
ShowYearPicker | Gets or sets a value that determines whether the calendar should display a list of years when the user clicks the header element on the year calendar. |
Value | Gets or sets the currently selected date. |
WeeksAfter | Gets or sets the number of weeks to show on the calendar after the current month. |
WeeksBefore | Gets or sets the number of weeks to show on the calendar before the current month. |