CalendarBuilder
Defines the fluent API for configuring the Telerik UI for ASP.NET Core Calendar
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class CalendarBuilder : WidgetBuilderBase<Calendar, CalendarBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Calendar, CalendarBuilder>CalendarBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the CalendarBuilder class.
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.
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 CalendarBuilder AllowReverse(bool value)
The value for AllowReverse
Returns:Returns the current CalendarBuilder instance.
Defines the century cell format.
public CalendarBuilder CenturyCellsFormat(CenturyCellsFormats value)
The value for CenturyCellsFormat
Returns:Returns the current CalendarBuilder instance.
Specifies the component type of the widget. "classic" - Uses the standard rendering of the widget. or "modern" - Uses new rendering with a fresh and modern look and feel..
public CalendarBuilder ComponentType(string value)
The value for ComponentType
Returns:Returns the current CalendarBuilder 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 CalendarBuilder Culture(string value)
The value for Culture
Returns:Returns the current CalendarBuilder instance.
Specifies a list of dates, which will be passed to the month template.
public CalendarBuilder Dates(params DateTime[] value)
The value for Dates
Returns:Returns the current CalendarBuilder instance.
Specifies the navigation depth.
public CalendarBuilder Depth(CalendarView value)
The value for Depth
Returns:Returns the current CalendarBuilder instance.
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:Returns the current CalendarBuilder instance.
Specifies the disabled dates in the Calendar by using a JavaScript function.
public CalendarBuilder DisableDates(string handler)
The JavaScript function that will set the disabled dates.
Returns:Returns the current CalendarBuilder instance.
Configures the client-side events.
public CalendarBuilder Events(Action<CalendarEventBuilder> configurator)
The client events action.
Returns:Returns the current CalendarBuilder instance.
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:Returns the current CalendarBuilder instance.
The template which renders the footer. If false, the footer will not be rendered.
public CalendarBuilder Footer(string value)
The value for Footer
Returns:Returns the current CalendarBuilder instance.
Sets the template that renders the Calendar footer.
public CalendarBuilder FooterId(string id)
The id of the external Kendo UI template.
Returns:Returns the current CalendarBuilder instance.
Specifies the format, which is used to parse value set with value() method.
public CalendarBuilder Format(string value)
The value for Format
Returns:Returns the current CalendarBuilder instance.
Specifies the maximum date, which the calendar can show.
public CalendarBuilder Max(DateTime value)
The value for Max
Returns:Returns the current CalendarBuilder instance.
Sets the maximum date that can be selected in the Calendar.
public CalendarBuilder Max(string date)
The value that configures maximum date.
Returns:Returns the current CalendarBuilder instance.
Allows localization of the strings that are used in the widget.
public CalendarBuilder Messages(Action<CalendarMessagesSettingsBuilder> configurator)
The CalendarMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of CalendarBuilder .
Specifies the minimum date, which the calendar can show.
public CalendarBuilder Min(DateTime value)
The value for Min
Returns:Returns the current CalendarBuilder instance.
Sets the minimum date that can be selected in the Calendar.
public CalendarBuilder Min(string date)
The value that configures minimum date.
Returns:Returns the current CalendarBuilder instance.
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:Returns the current CalendarBuilder instance.
Sets the template that renders the cells in the 'month' view.
public CalendarBuilder MonthTemplate(string content)
The value that configures the template.
Returns:Returns the current CalendarBuilder instance.
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:Returns the current CalendarBuilder instance.
Sets the template that renders the cells in the 'month' view.
public CalendarBuilder MonthTemplateHandler(string templateHandler)
The JavaScript function that will return the content of the cells in the 'month' view.
Returns:Returns the current CalendarBuilder instance.
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:Returns the current CalendarBuilder instance.
Sets the template that renders the cells in the 'month' view.
public CalendarBuilder MonthTemplateView(IHtmlContent templateView)
The Razor View that will be used for rendering the cells content in the 'month' view.
Returns:Returns the current CalendarBuilder instance.
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 CalendarRangeSettingsBuilder for the range setting.
Returns:Returns the current instance of CalendarBuilder .
By default user is able to select a single date. The property can also be set to multiple or range. More information about the different selection modes can be found in the Selection article.
public CalendarBuilder Selectable(string value)
The value for Selectable
Returns:Returns the current CalendarBuilder instance.
Specifies which dates to be selected when the calendar is initialized.
public CalendarBuilder SelectDates(params DateTime[] value)
The value for SelectDates
Returns:Returns the current CalendarBuilder instance.
Configures the selection settings of the Calendar.
public CalendarBuilder Selection(Action<CalendarSelectionSettingsBuilder> selectionAction)
The action that configures the selection settings.
Returns:Returns the current CalendarBuilder instance.
When this configuration is enabled, the calendar will render days from the previous and next months in the current view.
public CalendarBuilder ShowOtherMonthDays(bool value)
The value for ShowOtherMonthDays
Returns:Returns the current CalendarBuilder 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 CalendarBuilder Start(CalendarView value)
The value for Start
Returns:Returns the current CalendarBuilder instance.
Sets the selected date in the Calendar.
public CalendarBuilder Value(DateTime? date)
The DateTime value that sets the selected date.
Returns:Returns the current CalendarBuilder instance.
Specifies the selected date.
public CalendarBuilder Value(DateTime value)
The value for Value
Returns:Returns the current CalendarBuilder instance.
Sets the selected date in the Calendar.
public CalendarBuilder Value(string date)
The value that sets the selected date.
Returns:Returns the current CalendarBuilder instance.
If set to true a week of the year will be shown on the left side of the calendar.
If set to true a week of the year will be shown on the left side of the calendar.
public CalendarBuilder WeekNumber(bool value)
The value for WeekNumber
Returns:Returns the current CalendarBuilder instance.