Calendar
Kendo UI Calendar component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Calendar : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseCalendar
Implements:
Inherited Members
Constructors
Initializes a new instance of the Calendar class.
Properties
Enables the user to select an end date that is before the start date. This option is available only when the selectable configuration is set to range.
public bool? AllowReverse { get; set; }
Defines the century cell format.
public CenturyCellsFormats? CenturyCellsFormat { get; set; }
Specifies the component type of the widget. "classic" - Uses the standard rendering of the widget. or "modern" - Uses new rendering with a fresh and modern look and feel..
public string ComponentType { get; set; }
Specifies the culture info used by the component. A valid kendo culture file must be added to the page in order for the example to work. <script src="https://cdn.jsdelivr.net/npm/@progress/kendo-ui@{version}/umd/cultures/kendo.culture.de-DE.min.js"></script>
public string Culture { get; set; }
Specifies a list of dates, which will be passed to the month template.
public DateTime[] Dates { get; set; }
Specifies the navigation depth.
public CalendarView? Depth { get; set; }
DisableDates member.
public IEnumerable<string> DisableDates { get; set; }
DisableDatesHandler member.
public ClientHandlerDescriptor DisableDatesHandler { get; set; }
EnableFooter member.
public bool EnableFooter { get; set; }
The template which renders the footer. If false, the footer will not be rendered.
public string Footer { get; set; }
Specifies the format, which is used to parse value set with value() method.
public string Format { get; set; }
Specifies the maximum date, which the calendar can show.
public DateTime? Max { get; set; }
Allows localization of the strings that are used in the widget.
public CalendarMessagesSettings Messages { get; }
Specifies the minimum date, which the calendar can show.
public DateTime? Min { get; set; }
Specifies the month template of the component.
public MonthTemplate MonthTemplate { get; }
Specifies an initial range selection. This option is available only when the selectable configuration is set to range.
public CalendarRangeSettings Range { get; }
By default user is able to select a single date. The property can also be set to multiple or range. More information about the different selection modes can be found in the Selection article.
public string Selectable { get; set; }
Specifies which dates to be selected when the calendar is initialized.
public DateTime[] SelectDates { get; set; }
SelectionSettings member.
public CalendarSelectionSettings SelectionSettings { get; }
When this configuration is enabled, the calendar will render days from the previous and next months in the current view.
public bool? ShowOtherMonthDays { get; set; }
Specifies the start view. The following settings are available for the start value: "month" - Shows the days of the month.; "year" - Shows the months of the year.; "decade" - Shows the years of the decade. or "century" - Shows the decades from the century..
public CalendarView? Start { get; set; }
If set to true a week of the year will be shown on the left side of the calendar.
public bool? WeekNumber { get; set; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
VerifySettings method.
public override void VerifySettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: