Defines the fluent interface for configuring the SchedulerMonthView.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TView
Syntax:
public class SchedulerMonthViewBuilder<TView> : SchedulerBaseViewBuilder<TView, SchedulerMonthViewBuilder<TView>> where TView : SchedulerMonthView
Inheritance: objectSchedulerBaseViewBuilder<TView, SchedulerMonthViewBuilder<TView>>SchedulerMonthViewBuilder<TView>
Inherited Members
Constructors
public SchedulerMonthViewBuilder(TView resource)
Methods
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 SchedulerMonthViewBuilder<TView> AdaptiveSlotHeight(bool adaptiveSlotHeight)
The adaptiveSlotHeight
Returns:SchedulerMonthViewBuilder<TView>
Defines the template used to render the day slots in the month view. The available fields in the template are:
- date: Represents the current date.
- resources(): Returns the relevant resources for the current slot.
public SchedulerMonthViewBuilder<TView> DayTemplate(string dayTemplate)
The value that configures the template content.
Returns:SchedulerMonthViewBuilder<TView>
Defines the template used to render the day slots in the month view. The available fields in the template are:
- date: Represents the current date.
- resources(): Returns the relevant resources for the current slot.
public SchedulerMonthViewBuilder<TView> DayTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:SchedulerMonthViewBuilder<TView>
Defines the template used to render the day slots in the month view. The available fields in the template are:
- date: Represents the current date.
- resources(): Returns the relevant resources for the current slot.
public SchedulerMonthViewBuilder<TView> DayTemplateHandler(string dayTemplate)
The JavaScript function that returns the template.
Returns:SchedulerMonthViewBuilder<TView>
Defines the template used to render the day slots in the month view. The available fields in the template are:
- date: Represents the current date.
- resources(): Returns the relevant resources for the current slot.
public SchedulerMonthViewBuilder<TView> DayTemplateId(string dayTemplateId)
The "id" attribute of the external Kendo UI Template.
Returns:SchedulerMonthViewBuilder<TView>
Defines the template used to render the day slots in the month view. The available fields in the template are:
- date: Represents the current date.
- resources(): Returns the relevant resources for the current slot.
public SchedulerMonthViewBuilder<TView> DayTemplateView(MvcHtmlString dayTemplate)
The Razor View that contains the template.
Returns:SchedulerMonthViewBuilder<TView>
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 property to true.
public SchedulerMonthViewBuilder<TView> EventHeight(object eventHeight)
The eventHeight
Returns:SchedulerMonthViewBuilder<TView>
Specifies the distance between individual events.
public SchedulerMonthViewBuilder<TView> EventSpacing(double? eventSpacing)
The eventSpacing
Returns:SchedulerMonthViewBuilder<TView>
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 SchedulerMonthViewBuilder<TView> EventsPerDay(double? eventsPerDay)
The eventsPerDay
Returns:SchedulerMonthViewBuilder<TView>
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 SchedulerMonthViewBuilder<TView> MoreEventsPopover(bool enable)
SchedulerMonthViewBuilder<TView>
Returns the current SchedulerMonthViewBuilder<TView> instance.
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 SchedulerMonthViewBuilder<TView> Virtual(bool enable)
SchedulerMonthViewBuilder<TView>