Defines the fluent API for configuring the Kendo UI MultiViewCalendar
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MultiViewCalendarBuilder : WidgetBuilderBase<MultiViewCalendar, MultiViewCalendarBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<MultiViewCalendar, MultiViewCalendarBuilder>MultiViewCalendarBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the MultiViewCalendarBuilder class.
public MultiViewCalendarBuilder(MultiViewCalendar component)
Methods
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 MultiViewCalendarBuilder AllowReverse()
Returns the current MultiViewCalendarBuilder instance.
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 MultiViewCalendarBuilder AllowReverse(bool value)
The value for AllowReverse
Returns:Returns the current MultiViewCalendarBuilder instance.
Defines the century cell format.
public MultiViewCalendarBuilder CenturyCellsFormat(CenturyCellsFormats value)
The value for CenturyCellsFormat
Returns:Returns the current MultiViewCalendarBuilder instance.
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 MultiViewCalendarBuilder Culture(string value)
The value for Culture
Returns:Returns the current MultiViewCalendarBuilder instance.
Specifies a list of dates, which will be passed to the month template.
public MultiViewCalendarBuilder Dates(params DateTime[] value)
The value for Dates
Returns:Returns the current MultiViewCalendarBuilder instance.
Specifies the navigation depth.
public MultiViewCalendarBuilder Depth(CalendarView value)
The value for Depth
Returns:Returns the current MultiViewCalendarBuilder instance.
Specifies the disabled dates in the MultiViewCalendar widget using a function.
public MultiViewCalendarBuilder DisableDates(params DayOfWeek[] days)
Array of values to disable.
Returns:Returns the current instance of MultiViewCalendarBuilder.
Specifies the disabled dates in the MultiViewCalendar widget using a function.
public MultiViewCalendarBuilder DisableDates(string handler)
The function which will be called to disable dates..
Returns:Returns the current instance of MultiViewCalendarBuilder.
Configures the client-side events.
public MultiViewCalendarBuilder Events(Action<MultiViewCalendarEventBuilder> configurator)
The client events action.
Returns:Returns the current MultiViewCalendarBuilder instance.
Enable/disable footer.
public MultiViewCalendarBuilder Footer(bool footer)
The value of the property.
Returns:The template which renders the footer. If false, the footer will not be rendered.
public MultiViewCalendarBuilder Footer(string value)
The value for Footer
Returns:Returns the current MultiViewCalendarBuilder instance.
FooterId to be used for rendering the footer of the MultiViewCalendar.
public MultiViewCalendarBuilder FooterId(string id)
The value of the footer id.
Returns:Returns the current instance of MultiViewCalendarBuilder.
Specifies the format, which is used to parse value set with value() method.
public MultiViewCalendarBuilder Format(string value)
The value for Format
Returns:Returns the current MultiViewCalendarBuilder instance.
Specifies the maximum date, which the multiViewCalendar can show.
public MultiViewCalendarBuilder Max(DateTime value)
The value for Max
Returns:Returns the current MultiViewCalendarBuilder instance.
Allows localization of the strings that are used in the widget.
public MultiViewCalendarBuilder Messages(Action<MultiViewCalendarMessagesSettingsBuilder> configurator)
The MultiViewCalendarMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of MultiViewCalendarBuilder .
Specifies the minimum date, which the multiViewCalendar can show.
public MultiViewCalendarBuilder Min(DateTime value)
The value for Min
Returns:Returns the current MultiViewCalendarBuilder instance.
Configures the content of cells of the MultiViewCalendar.
public MultiViewCalendarBuilder MonthTemplate(Action<MonthTemplateBuilder> monthTemplateAction)
The template action reference.
Returns:Returns the current instance of MultiViewCalendarBuilder.
Templates for the cells rendered in the "month" view.
public MultiViewCalendarBuilder MonthTemplate(string content)
The content of the template.
Returns:Returns the current instance of MultiViewCalendarBuilder.
Configures the content of cells of the MultiViewCalendar.
public MultiViewCalendarBuilder MonthTemplate<TModel>(TemplateBuilder<TModel> template)
The template action reference.
Returns:Returns the current instance of MultiViewCalendarBuilder.
The handler which will be used to generate the content for the month template.
public MultiViewCalendarBuilder MonthTemplateHandler(string templateHandler)
The function which will be used for the template content.
Returns:Returns the current instance of MultiViewCalendarBuilder.
MonthTemplateId to be used for rendering the cells of the MultiViewCalendar.
public MultiViewCalendarBuilder MonthTemplateId(string id)
The id referencing the month template instance.
Returns:Returns the current instance of MultiViewCalendarBuilder.
MonthTemplateView to be used for rendering the cells of the MultiViewCalendar.
public MultiViewCalendarBuilder MonthTemplateView(IHtmlContent templateView)
The reference to the template view.
Returns:Returns the current instance of MultiViewCalendarBuilder.
Configures the Kendo UI MultiViewCalendar range settings.
public MultiViewCalendarBuilder Range(Action<MultiViewCalendarRangeSettingsBuilder> configurator)
The MultiViewCalendarRangeSettingsBuilder for the range setting.
Returns:Returns the current instance of MultiViewCalendarBuilder .
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 MultiViewCalendarBuilder Selectable(string value)
The value for Selectable
Returns:Returns the current MultiViewCalendarBuilder instance.
Specifies which dates to be selected when the multiViewCalendar is initialized.
public MultiViewCalendarBuilder SelectDates(params DateTime[] value)
The value for SelectDates
Returns:Returns the current MultiViewCalendarBuilder instance.
When this configuration is enabled, the MultiViewCalendar will render days from the previous and next months in the current views.
public MultiViewCalendarBuilder ShowOtherMonthDays()
Returns the current MultiViewCalendarBuilder instance.
When this configuration is enabled, the MultiViewCalendar will render days from the previous and next months in the current views.
public MultiViewCalendarBuilder ShowOtherMonthDays(bool value)
The value for ShowOtherMonthDays
Returns:Returns the current MultiViewCalendarBuilder instance.
If set to true will render a header for every view.
public MultiViewCalendarBuilder ShowViewHeader()
Returns the current MultiViewCalendarBuilder instance.
If set to true will render a header for every view.
public MultiViewCalendarBuilder ShowViewHeader(bool value)
The value for ShowViewHeader
Returns:Returns the current MultiViewCalendarBuilder instance.
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 MultiViewCalendarBuilder Start(CalendarView value)
The value for Start
Returns:Returns the current MultiViewCalendarBuilder instance.
Specifies the selected date.
public MultiViewCalendarBuilder Value(DateTime value)
The value for Value
Returns:Returns the current MultiViewCalendarBuilder instance.
This property controls how many months to be shown at same time. By default it shows two months.
public MultiViewCalendarBuilder Views(double value)
The value for Views
Returns:Returns the current MultiViewCalendarBuilder instance.
If set to true a week of the year will be shown on the left side of the multiViewCalendar.
public MultiViewCalendarBuilder WeekNumber()
Returns the current MultiViewCalendarBuilder instance.
If set to true a week of the year will be shown on the left side of the multiViewCalendar.
public MultiViewCalendarBuilder WeekNumber(bool value)
The value for WeekNumber
Returns:Returns the current MultiViewCalendarBuilder instance.