CalendarBuilder
Defines the fluent interface for configuring the Calendar.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class CalendarBuilder : WidgetBuilderBase<Calendar, CalendarBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Calendar, CalendarBuilder>CalendarBuilder
Implements:
Inherited Members
Constructors
Methods
Enables the user to select an end date before the start date. This option is available only when the Selectable() configuration is set to "range".
Enables the user to select an end date before the start date. This option is available only when the Selectable() configuration is set to "range".
public CalendarBuilder AllowReverse(bool value)
The value that enables a reverse selection.
Returns:Defines the format of the century cells. "CenturyCellsFormats.Long" - The cells will display a decade range, for example, '2000-2009', '2010-2019', and so on. "CenturyCellsFormats.Short" - The cells will display just the starting year of the decade, for example, '2000', '2010', and so on.
public CalendarBuilder CenturyCellsFormat(CenturyCellsFormats value)
The enum value that configures the century cells format.
Returns:Specifies the component type of the Calendar. "classic" - Uses the standard rendering of the Calendar. "modern" - Uses a new rendering with a fresh and modern look and feel.
public CalendarBuilder ComponentType(string value)
The value that configures the component type option.
Returns:Specifies the culture used by the Calendar component.
public CalendarBuilder Culture(string culture)
The culture value.
Returns:Specifies the navigation depth. Note: The option will not be applied if the Start option is lower than the depth. Always set both and Start() and Depth() options.
public CalendarBuilder Depth(CalendarView depth)
The value that configures the depth.
Returns:Specifies the disabled dates in the Calendar component as an array of DayOfWeek enums.
public CalendarBuilder DisableDates(params DayOfWeek[] days)
The array of DayOfWeek enums.
Returns:Handles the client-side events of the Calendar.
public CalendarBuilder Events(Action<CalendarEventBuilder> clientEventsAction)
The action that configures the available events.
Returns:Enables the Calendar footer. If set to 'false', the footer will not be displayed.
public CalendarBuilder Footer(bool footer)
The value that configures the visibility of the footer.
Returns:Sets the template that renders the Calendar footer.
Sets the template that renders the Calendar footer.
public CalendarBuilder FooterId(string id)
The id of the external Kendo UI template.
Returns:Sets the date format that will be used to parse the Calendar value.
public CalendarBuilder Format(string format)
The value of the format.
Returns:Sets the maximum date that can be selected in the Calendar.
public CalendarBuilder Max(DateTime date)
The value that configures maximum date.
Returns:Sets the maximum date that can be selected in the Calendar.
public CalendarBuilder Max(string date)
The value that configures maximum date.
Returns:Defines the localization of the texts that are used in the Calendar.
public CalendarBuilder Messages(Action<CalendarMessagesSettingsBuilder> configurator)
The configurator for the messages settings.
Returns:Sets the minimum date that can be selected in the Calendar.
public CalendarBuilder Min(DateTime date)
The value that configures minimum date.
Returns:Sets the minimum date that can be selected in the Calendar.
public CalendarBuilder Min(string date)
The value that configures minimum date.
Returns:Sets the template that renders the cells in the "month" view.
public CalendarBuilder MonthTemplate(Action<MonthTemplateBuilder> monthTemplateAction)
The action that configures the template settings of the "month" view.
Returns:Sets the template that renders the cells in the "month" view.
public CalendarBuilder MonthTemplate(string content)
The value that configures the template.
Returns:Sets the template that renders the cells in the "month" view.
public CalendarBuilder MonthTemplate<TModel>(TemplateBuilder<TModel> template)
The value that configures the template.
Returns:Sets the template that renders the cells in the "month" view.
public CalendarBuilder MonthTemplateId(string id)
The id of the external Kendo UI template.
Returns:Specifies an initial range selection. This option is available only when the Selectable() configuration is set to "range".
public CalendarBuilder Range(Action<CalendarRangeSettingsBuilder> configurator)
The configurator for the range settings.
Returns:Specifies the selection mode.
public CalendarBuilder Selectable(string selectable)
The value that configures the selection mode.
Returns:Configures the selection settings of the Calendar.
public CalendarBuilder Selection(Action<CalendarSelectionSettingsBuilder> selectionAction)
The action that configures the selection settings.
Returns:When this option is enabled, the Calendar will render days from the previous and next months in the current view.
public CalendarBuilder ShowOtherMonthDays(bool value)
The value that configures the visibility of the days from the previous and next months.
Returns:Specifies the "start" view.
public CalendarBuilder Start(CalendarView start)
The enum value that configures the "start" view.
Returns:Sets the selected date in the Calendar.
public CalendarBuilder Value(DateTime? date)
The DateTime value that sets the selected date.
Returns:Sets the selected date in the Calendar.
public CalendarBuilder Value(string date)
The value that sets the selected date.
Returns:Enabled the week number column. If set to 'true', a week of the year will be shown on the left side of the Calendar.
public CalendarBuilder WeekNumber(bool weekNumber)
The value that configures the visibility of the week number column.
Returns: