CalendarBuilder
Defines the fluent API for configuring the Kendo UI Calendar
Properties
WriteAction - Func
Methods
DisableDates(System.Collections.Generic.IEnumerable)
Parameters
disableDates - System.Collections.Generic.IEnumerable<String>
DisableDates(System.DayOfWeek[])
Specifies the disabled dates in the Calendar widget using a function.
Parameters
days - System.DayOfWeek[]
Example
@( Html.Kendo().Calendar()
.Name("calendar")
.DisableDates(DayofWeek.Saturday, DayOfWeek.Sunday)
)
DisableDates(System.String)
Specifies the disabled dates in the Calendar widget using a function.
Parameters
handler - System.String
Example
@( Html.Kendo().Calendar()
.Name("calendar")
.DisableDates("disableDates")
)
FooterId(System.String)
FooterId to be used for rendering the footer of the Calendar.
Parameters
id - System.String
Example
@( Html.Kendo().Calendar()
.Name("Calendar")
.FooterId("widgetFooterId")
)
Footer(System.Boolean)
Enable/disable footer.
Parameters
footer - System.Boolean
Example
@( Html.Kendo().Calendar()
.Name("Calendar")
.Footer(false)
)
MonthTemplateId(System.String)
MonthTemplateId to be used for rendering the cells of the Calendar.
Parameters
id - System.String
Example
@( Html.Kendo().Calendar()
.Name("Calendar")
.MonthTemplateId("widgetMonthTemplateId")
)
MonthTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)
MonthTemplate to be used for rendering the cells of the Calendar.
Parameters
templateView - Microsoft.AspNetCore.Html.IHtmlContent
Example
@( Html.Kendo().Calendar()
.Name("Calendar")
.MonthTemplateView(Html.Partial("WidgetMonthTemplate"))
)
MonthTemplateHandler(System.String)
MonthTemplate handler to be used for rendering the cells of the Calendar.
Parameters
templateHandler - System.String
Example
@( Html.Kendo().Calendar()
.Name("Calendar")
.MonthTemplateHandler("widgetMonthTemplate")
)
MonthTemplate(System.String)
Templates for the cells rendered in the "month" view.
Parameters
content - System.String
Example
@( Html.Kendo().Calendar()
.Name("Calendar")
.MonthTemplate("#= data.value #")
)
Min(System.String)
Sets the minimal date, which can be selected in the calendar.
Parameters
date - System.String
Max(System.String)
Sets the maximal date, which can be selected in the calendar.
Parameters
date - System.String
Value(System.Nullable)
Sets the value of the calendar
Parameters
date - System.Nullable<DateTime>
Value(System.String)
Sets the value of the calendar
Parameters
date - System.String
Selection(System.Action)
Configures the selection settings of the calendar.
Parameters
selectionAction - System.Action<CalendarSelectionSettingsBuilder>
SelectAction settings, which includes Action name and IEnumerable of DateTime objects.
ComponentType(System.String)
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..
Parameters
value - System.String
The value for ComponentType
Culture(System.String)
Specifies the culture info used by the widget.
Parameters
value - System.String
The value for Culture
Dates(System.DateTime[])
Specifies a list of dates, which will be passed to the month template.
Parameters
value - System.DateTime[]
The value for Dates
Footer(System.String)
The template which renders the footer. If false, the footer will not be rendered.
Parameters
value - System.String
The value for Footer
Format(System.String)
Specifies the format, which is used to parse value set with value() method.
Parameters
value - System.String
The value for Format
Max(System.DateTime)
Specifies the maximum date, which the calendar can show.
Parameters
value - System.DateTime
The value for Max
Messages(System.Action)
Allows localization of the strings that are used in the widget.
Parameters
configurator - System.Action<CalendarMessagesSettingsBuilder>
The configurator for the messages setting.
Min(System.DateTime)
Specifies the minimum date, which the calendar can show.
Parameters
value - System.DateTime
The value for Min
Selectable(System.String)
By default user is able to select a single date. The property can also be set to "multiple" in order the multiple date selection to be enabled. More information about multiple selection can be found in the Selection article.
Parameters
value - System.String
The value for Selectable
SelectDates(System.DateTime[])
Specifies which dates to be selected when the calendar is initialized.
Parameters
value - System.DateTime[]
The value for SelectDates
WeekNumber(System.Boolean)
If set to true a week of the year will be shown on the left side of the calendar.
Parameters
value - System.Boolean
The value for WeekNumber
WeekNumber()
If set to true a week of the year will be shown on the left side of the calendar.
Value(System.DateTime)
Specifies the selected date.
Parameters
value - System.DateTime
The value for Value
Start(Kendo.Mvc.UI.CalendarView)
Parameters
value - CalendarView
The value for Start
Depth(Kendo.Mvc.UI.CalendarView)
Specifies the navigation depth.
Parameters
value - CalendarView
The value for Depth
MonthTemplate(System.Action)
Parameters
configurator - System.Action<CalendarMonthTemplateSettingsBuilder>
The configurator for the monthtemplate setting.
Events(System.Action)
Configures the client-side events.
Parameters
configurator - System.Action<CalendarEventBuilder>
The client events action.
Example
@(Html.Kendo().Calendar()
.Name("Calendar")
.Events(events => events
.Change("onChange")
)
)
ToComponent()
Returns the internal view component.
Expression(System.String)
Sets the name of the component.
Parameters
modelExpression - System.String
Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)
Sets the name of the component.
Parameters
modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Name(System.String)
Sets the name of the component.
Parameters
componentName - System.String
The name.
Deferred(System.Boolean)
Suppress initialization script rendering. Note that this options should be used in conjunction with
Parameters
deferred - System.Boolean
HtmlAttributes(System.Object)
Sets the HTML attributes.
Parameters
attributes - System.Object
The HTML attributes.
HtmlAttributes(System.Collections.Generic.IDictionary)
Sets the HTML attributes.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The HTML attributes.
Render()
Renders the component in place.
ToHtmlString()
WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)
Parameters
writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder
ToClientTemplate()
AsChildComponent()
Configures the widget as a child component.