Kendo UI SchedulerView TagHelper SchedulerViewTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("view", ParentTag = "views", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("editable", new string[] { "group", "all-day-event-template", "all-day-slot-template", "date-header-template", "day-template", "event-date-template", "event-template", "event-time-template", "major-time-header-template", "minor-time-header-template", "slot-template", "tooltip-template" })]
[SuppressTagRendering]
public class SchedulerViewTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseSchedulerViewTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-scheduler name="scheduler">
<views>
<view type="day" adaptive-slot-height="true"></view>
</views>
</kendo-scheduler>
Child Tags
Constructors
Initializes a new instance of the SchedulerViewTagHelper class.
public SchedulerViewTagHelper()
Properties
Increases the slot height when containing events up to views.eventsPerDay and reduces its height if there are less events for that specific day.
public bool? AdaptiveSlotHeight { get; set; }
The template used to render the "all day" scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title.
public string AllDayEventTemplate { get; set; }
The template used to render the "all day" scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title. This option expects the name of a JavaScript function that will be called to return the template.
public string AllDayEventTemplateHandler { get; set; }
The template used to render the "all day" scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title. This option expects the ID of the script element that contains the template.
public string AllDayEventTemplateId { get; set; }
The template used to render the "all day" scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent AllDayEventTemplateView { get; set; }
If set to true the scheduler will display a slot for "all day" events.
public bool? AllDaySlot { get; set; }
The template used to render the all day slot cell.The fields which can be used in the template are: date - represents the slot date.. resources() - returns the relevant resources for the current slot..
public string AllDaySlotTemplate { get; set; }
The template used to render the all day slot cell.The fields which can be used in the template are: date - represents the slot date.. resources() - returns the relevant resources for the current slot.. This option expects the name of a JavaScript function that will be called to return the template.
public string AllDaySlotTemplateHandler { get; set; }
The template used to render the all day slot cell.The fields which can be used in the template are: date - represents the slot date.. resources() - returns the relevant resources for the current slot.. This option expects the ID of the script element that contains the template.
public string AllDaySlotTemplateId { get; set; }
The template used to render the all day slot cell.The fields which can be used in the template are: date - represents the slot date.. resources() - returns the relevant resources for the current slot.. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent AllDaySlotTemplateView { get; set; }
The width of the table columns in timeline views. Value is treated as pixels.
public double? ColumnWidth { get; set; }
The template used to render the date header cells.By default the scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier, a.k.a abbreviated name of the week day, will be localized using the current Kendo UI culture. If the developer wants to control the day and month order then one needs to define a custom template.The fields which can be used in the template are: date - represents the major tick date..
public string DateHeaderTemplate { get; set; }
The template used to render the date header cells.By default the scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier, a.k.a abbreviated name of the week day, will be localized using the current Kendo UI culture. If the developer wants to control the day and month order then one needs to define a custom template.The fields which can be used in the template are: date - represents the major tick date.. This option expects the name of a JavaScript function that will be called to return the template.
public string DateHeaderTemplateHandler { get; set; }
The template used to render the date header cells.By default the scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier, a.k.a abbreviated name of the week day, will be localized using the current Kendo UI culture. If the developer wants to control the day and month order then one needs to define a custom template.The fields which can be used in the template are: date - represents the major tick date.. This option expects the ID of the script element that contains the template.
public string DateHeaderTemplateId { get; set; }
The template used to render the date header cells.By default the scheduler renders the date using a custom date format - "ddd M/dd". The "ddd" specifier, a.k.a abbreviated name of the week day, will be localized using the current Kendo UI culture. If the developer wants to control the day and month order then one needs to define a custom template.The fields which can be used in the template are: date - represents the major tick date.. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent DateHeaderTemplateView { get; set; }
The template used to render the day slots in month view.The fields which can be used in the template are: date Date - represents the current day. resources() - returns the relevant resources for the current slot..
public string DayTemplate { get; set; }
The template used to render the day slots in month view.The fields which can be used in the template are: date Date - represents the current day. resources() - returns the relevant resources for the current slot.. This option expects the name of a JavaScript function that will be called to return the template.
public string DayTemplateHandler { get; set; }
The template used to render the day slots in month view.The fields which can be used in the template are: date Date - represents the current day. resources() - returns the relevant resources for the current slot.. This option expects the ID of the script element that contains the template.
public string DayTemplateId { get; set; }
The template used to render the day slots in month view.The fields which can be used in the template are: date Date - represents the current day. resources() - returns the relevant resources for the current slot.. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent DayTemplateView { get; set; }
The end time of the view. The scheduler will display events ending before the endTime.
public DateTime? EndTime { get; set; }
The template used by the agenda view to render the date of the Scheduler events. The available field in the template is "date", which represents the event date.
public string EventDateTemplate { get; set; }
The template used by the agenda view to render the date of the Scheduler events. The available field in the template is "date", which represents the event date.
public string EventDateTemplateHandler { get; set; }
The template used by the agenda view to render the date of the Scheduler events. The available field in the template is "date", which represents the event date.
public string EventDateTemplateId { get; set; }
The template used by the agenda view to render the date of the Scheduler events. The available field in the template is "date", which represents the event date.
public IHtmlContent EventDateTemplateView { get; set; }
The height of the scheduler event rendered in month and timeline views. In month view It could be set to a concrete number or to the string value "auto". When set to "auto" it will automatically set the views.adaptiveRowHeight to true.
public object EventHeight { get; set; }
Specifies the distance between individual events.
public double? EventSpacing { get; set; }
Indicates how many events could be listed for a day. When there are more events for a specific day a "more" link will be placed at the bottom of the day slot and will navigate to the day view if clicked.
public double? EventsPerDay { get; set; }
The template used by the view to render the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title.
public string EventTemplate { get; set; }
The template used by the view to render the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title. This option expects the name of a JavaScript function that will be called to return the template.
public string EventTemplateHandler { get; set; }
The template used by the view to render the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title. This option expects the ID of the script element that contains the template.
public string EventTemplateId { get; set; }
The template used by the view to render the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; resources Array - the event resources; start Date - the event start date or title String - the event title. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent EventTemplateView { get; set; }
The template used by the agenda view to render the time of the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; isAllDay Boolean - if true the event is "all day"; resources Array - the event resources; start Date - the event start date or title String - the event title.
public string EventTimeTemplate { get; set; }
The template used by the agenda view to render the time of the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; isAllDay Boolean - if true the event is "all day"; resources Array - the event resources; start Date - the event start date or title String - the event title. This option expects the name of a JavaScript function that will be called to return the template.
public string EventTimeTemplateHandler { get; set; }
The template used by the agenda view to render the time of the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; isAllDay Boolean - if true the event is "all day"; resources Array - the event resources; start Date - the event start date or title String - the event title. This option expects the ID of the script element that contains the template.
public string EventTimeTemplateId { get; set; }
The template used by the agenda view to render the time of the scheduler events.The fields which can be used in the template are: description String - the event description; end Date - the event end date; isAllDay Boolean - if true the event is "all day"; resources Array - the event resources; start Date - the event start date or title String - the event title. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent EventTimeTemplateView { get; set; }
The number of minutes represented by a major tick.
public double? MajorTick { get; set; }
The template used to render the major ticks.By default the scheduler renders the time using the current culture time format.The fields which can be used in the template are: date - represents the major tick date..
public string MajorTimeHeaderTemplate { get; set; }
The template used to render the major ticks.By default the scheduler renders the time using the current culture time format.The fields which can be used in the template are: date - represents the major tick date.. This option expects the name of a JavaScript function that will be called to return the template.
public string MajorTimeHeaderTemplateHandler { get; set; }
The template used to render the major ticks.By default the scheduler renders the time using the current culture time format.The fields which can be used in the template are: date - represents the major tick date.. This option expects the ID of the script element that contains the template.
public string MajorTimeHeaderTemplateId { get; set; }
The template used to render the major ticks.By default the scheduler renders the time using the current culture time format.The fields which can be used in the template are: date - represents the major tick date.. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent MajorTimeHeaderTemplateView { get; set; }
The number of time slots to display per major tick.
public double? MinorTickCount { get; set; }
The template used to render the minor ticks.By default the scheduler renders a " ".The fields which can be used in the template are: date - represents the major tick date..
public string MinorTimeHeaderTemplate { get; set; }
The template used to render the minor ticks.By default the scheduler renders a " ".The fields which can be used in the template are: date - represents the major tick date.. This option expects the name of a JavaScript function that will be called to return the template.
public string MinorTimeHeaderTemplateHandler { get; set; }
The template used to render the minor ticks.By default the scheduler renders a " ".The fields which can be used in the template are: date - represents the major tick date.. This option expects the ID of the script element that contains the template.
public string MinorTimeHeaderTemplateId { get; set; }
The template used to render the minor ticks.By default the scheduler renders a " ".The fields which can be used in the template are: date - represents the major tick date.. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent MinorTimeHeaderTemplateView { get; set; }
Configures the number of months that will be displayed in the year view calendar.
public double? Months { get; set; }
Controls how event overflow is opened in the Month view. When set to true, clicking the more-events link opens a popover for the date. When set to false, clicking the link uses the legacy behavior and navigates to the Day view.
public bool? MoreEventsPopover { get; set; }
The name of the view. Typically, used to get the name of the currently selected view via the view method.
public string Name { get; set; }
If set to true the view will be initially selected by the scheduler widget.
public bool? Selected { get; set; }
The format used to display the selected date. Uses kendo.format.Contains two placeholders - "{0}" and "{1}" which represent the start and end date displayed by the view.
public string SelectedDateFormat { get; set; }
The format used to display the selected date when viewport is narrow, and the date is displayed in short ("d") format by default. Uses kendo.format.
public string SelectedShortDateFormat { get; set; }
If set to true the view will be initially shown in business hours mode. By default view is displayed in full day mode.
public bool? ShowWorkHours { get; set; }
The template used to render the time slot cells.The fields which can be used in the template are: date - represents the slot date and time.. resources() - returns the relevant resources for the current slot..
public string SlotTemplate { get; set; }
The template used to render the time slot cells.The fields which can be used in the template are: date - represents the slot date and time.. resources() - returns the relevant resources for the current slot.. This option expects the name of a JavaScript function that will be called to return the template.
public string SlotTemplateHandler { get; set; }
The template used to render the time slot cells.The fields which can be used in the template are: date - represents the slot date and time.. resources() - returns the relevant resources for the current slot.. This option expects the ID of the script element that contains the template.
public string SlotTemplateId { get; set; }
The template used to render the time slot cells.The fields which can be used in the template are: date - represents the slot date and time.. resources() - returns the relevant resources for the current slot.. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent SlotTemplateView { get; set; }
Configures the start date of the year view. The Scheduler will display 12 months starting from the startDate.
public DateTime? StartDate { get; set; }
The start time of the view. The scheduler will display events starting after the startTime.
public DateTime? StartTime { get; set; }
Represents a collection of templates defined for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The user-friendly title of the view displayed by the scheduler.
public string Title { get; set; }
Configures the template used to render the Tooltip in the Scheduler year view.The fields which can be used in the template are: date Date - the selected date from the calendar; events Array - list of the events and their respective resource for the selected date or messages Object - the configuration of the Scheduler messages used for localization..
public string TooltipTemplate { get; set; }
Configures the template used to render the Tooltip in the Scheduler year view.The fields which can be used in the template are: date Date - the selected date from the calendar; events Array - list of the events and their respective resource for the selected date or messages Object - the configuration of the Scheduler messages used for localization.. This option expects the name of a JavaScript function that will be called to return the template.
public string TooltipTemplateHandler { get; set; }
Configures the template used to render the Tooltip in the Scheduler year view.The fields which can be used in the template are: date Date - the selected date from the calendar; events Array - list of the events and their respective resource for the selected date or messages Object - the configuration of the Scheduler messages used for localization.. This option expects the ID of the script element that contains the template.
public string TooltipTemplateId { get; set; }
Configures the template used to render the Tooltip in the Scheduler year view.The fields which can be used in the template are: date Date - the selected date from the calendar; events Array - list of the events and their respective resource for the selected date or messages Object - the configuration of the Scheduler messages used for localization.. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TooltipTemplateView { get; set; }
The type of the view. The built-in views are: "day", "week", "workWeek", "month", "agenda", "timeline", "timelineWeek", "timelineWorkWeek", "timelineMonth" and "year".
public string Type { get; set; }
Enables the DOM virtualization for vertical grouping of the view - renders batches of DOM elements as you scroll. The views that support this option are: "day", "week", "workWeek", "month".
public bool? Virtual { get; set; }
The end of working week (index based).
public double? WorkWeekEnd { get; set; }
The start of working week (index based).
public double? WorkWeekStart { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.