New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Definition

Constructors

C#
public Calendar(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContextinitializerIJavaScriptInitializerurlGeneratorIUrlGenerator

Fields

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.

C#
public bool? AllowReverse

Properties

Defines the century cell format.

C#
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..

C#
public string ComponentType { get; set; }
C#
public string Culture { get; set; }
C#
public string Depth { get; set; }
C#
public IEnumerable<string> DisableDates { get; set; }
C#
public ClientHandlerDescriptor DisableDatesHandler { get; set; }
C#
public bool EnableFooter { get; set; }
C#
public string Footer { get; set; }
C#
public string FooterId { get; set; }
C#
public string Format { get; set; }
C#
public DateTime? Max { get; set; }
C#
public CalendarMessagesSettings Messages { get; set; }
C#
public DateTime? Min { get; set; }
C#
public MonthTemplate MonthTemplate { get; }

Specifies an initial range selection. This option is available only when the selectable configuration is set to range.

C#
public CalendarRangeSettings Range { get; }
C#
public string Selectable { get; set; }
C#
public IList<DateTime> SelectDates { get; set; }
C#
public CalendarSelectionSettings SelectionSettings { get; set; }

When this configuration is enabled, the calendar will render days from the previous and next months in the current view.

C#
public bool? ShowOtherMonthDays { get; set; }
C#
public string Start { get; set; }
C#
public DateTime? Value { get; set; }
C#
public bool? WeekNumber { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

C#
public override void VerifySettings()

Overrides: WidgetBase.VerifySettings()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The writer.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)