Kendo UI MultiViewCalendar TagHelper MultiViewCalendarTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-multiviewcalendar")]
[RestrictChildren("messages", new string[] { "month", "range" })]
public class MultiViewCalendarTagHelper : CalendarBaseTagHelper, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseCalendarBaseTagHelperMultiViewCalendarTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-multiviewcalendar name="calendar" selectable="range" allow-reverse="true"></kendo-multiviewcalendar>
Child Tags
Constructors
Initializes a new instance of the MultiViewCalendarTagHelper class.
public MultiViewCalendarTagHelper(IKendoHtmlGenerator generator)
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 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. The following settings are available for the depth 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? Depth { get; set; }
An array or function that will be used to determine which dates to be disabled in the multiViewCalendar.
public DateTime[] DisableDates { get; set; }
If set to false, the footer will not be rendered.
public bool? EnableFooter { get; set; }
The template which renders the footer. If false, the footer will not be rendered.
public string Footer { get; set; }
The template which renders the footer. If false, the footer will not be rendered.
public string FooterHandler { 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 multiViewCalendar can show.
public DateTime? Max { get; set; }
Specifies the minimum date, which the multiViewCalendar can show.
public DateTime? Min { get; set; }
The name of the JavaScript function that will handle the change event. Fires when selection is changed.
public string OnChange { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the MultiViewCalendar is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the navigate event. Fires when multiViewCalendar navigates.
public string OnNavigate { get; set; }
By default user is able to select a single date. The property can also be set to "multiple" or "range". More information about multiple selection can be found in the Selection article.
public string Selectable { get; set; }
Specifies which dates to be selected when the multiViewCalendar is initialized.
public DateTime[] SelectDates { get; set; }
When this configuration is enabled, the MultiViewCalendar will render days from the previous and next months in the current views.
public bool? ShowOtherMonthDays { get; set; }
If set to true will render a header for every view.
public bool? ShowViewHeader { 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; }
This property controls how many months to be shown at same time. By default it shows two months.
public double? Views { get; set; }
If set to true a week of the year will be shown on the left side of the multiViewCalendar.
public bool? WeekNumber { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: