MultiViewCalendarBuilder

Properties

WriteAction - Func

Methods

DisableDates(System.Collections.Generic.IEnumerable)

Specifies the disabled dates in the MultiViewCalendar widget using a collection of strings.

Parameters

disableDates - System.Collections.Generic.IEnumerable<String>

Collection of dates to disable.

RETURNS

Returns the current instance of MultiViewCalendarBuilder.

Example

Razor
 
             @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .DisableDates(new string[]{"monday", "wednesday"})
            )
             

DisableDates(System.DayOfWeek[])

Specifies the disabled dates in the MultiViewCalendar widget using a function.

Parameters

days - System.DayOfWeek[]

Array of values to disable.

RETURNS

Returns the current instance of MultiViewCalendarBuilder.

Example

Razor
 
             @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .DisableDates(DayofWeek.Saturday, DayOfWeek.Sunday)
            )
             

DisableDates(System.String)

Specifies the disabled dates in the MultiViewCalendar widget using a function.

Parameters

handler - System.String

The function which will be called to disable dates..

RETURNS

Returns the current instance of MultiViewCalendarBuilder.

Example

Razor
 
             @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .DisableDates("disableDates")
            )
             

FooterId(System.String)

FooterId to be used for rendering the footer of the MultiViewCalendar.

Parameters

id - System.String

The value of the footer id.

RETURNS

Returns the current instance of MultiViewCalendarBuilder.

Example

Razor
 
             @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .FooterId("widgetFooterId")
            )
             

MonthTemplate(System.Action)

Configures the content of cells of the MultiViewCalendar.

Parameters

monthTemplateAction - System.Action<MonthTemplateBuilder>

The template action reference.

RETURNS

Returns the current instance of MultiViewCalendarBuilder.

Example

Razor
 
             @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .MonthTemplate(month => month.Content("#= data.value #"))
            )
             

MonthTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Configures the content of cells of the MultiViewCalendar.

Parameters

template - TemplateBuilder<TModel>

The template action reference.

RETURNS

Returns the current instance of MultiViewCalendarBuilder.

Example

Razor
 
             @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .MonthTemplate(Html.Kendo().Template().AddHtml("test"))
            )
             

MonthTemplateId(System.String)

MonthTemplateId to be used for rendering the cells of the MultiViewCalendar.

Parameters

id - System.String

The id referencing the month template instance.

RETURNS

Returns the current instance of MultiViewCalendarBuilder.

Example

Razor
 
             @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .MonthTemplateId("widgetMonthTemplateId")
            )
             

MonthTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

MonthTemplateView to be used for rendering the cells of the MultiViewCalendar.

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The reference to the template view.

RETURNS

Returns the current instance of MultiViewCalendarBuilder.

Example

Razor
 
             @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .MonthTemplateView(Html.Partial("widgetMonthTemplate"))
            )
             

MonthTemplateHandler(System.String)

The handler which will be used to generate the content for the month template.

Parameters

templateHandler - System.String

The function which will be used for the template content.

RETURNS

Returns the current instance of MultiViewCalendarBuilder.

Example

Razor
 
             @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .MonthTemplateHandler("handler")
            )
             

MonthTemplate(System.String)

Templates for the cells rendered in the "month" view.

Parameters

content - System.String

The content of the template.

RETURNS

Returns the current instance of MultiViewCalendarBuilder.

Example

Razor
 
             @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .MonthTemplate("#= data.value #")
            )
             

AllowReverse(System.Boolean)

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.

Parameters

value - System.Boolean

The value for AllowReverse

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @(Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Selectable("range")
                        .AllowReverse()
             )
             

AllowReverse()

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.

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @(Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Selectable("range")
                        .AllowReverse()
             )
             

Culture(System.String)

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://kendo.cdn.telerik.com/{kendo version}/js/cultures/kendo.culture.de-DE.min.js"></script>

Parameters

value - System.String

The value for Culture

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Culture("de-DE")
            )
             

Dates(System.DateTime[])

Specifies a list of dates, which will be passed to the month template.

Parameters

value - System.DateTime[]

The value for Dates

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Dates(new List<DateTime>(){new DateTime(2024,1,4), new DateTime(2024,1,5)})
            )
             

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

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Footer(false)
            )
             

Format(System.String)

Specifies the format, which is used to parse value set with value() method.

Parameters

value - System.String

The value for Format

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Format("dd/MM/yyyy")
                        .Value(07/06/2024)
            )
             

Max(System.DateTime)

Specifies the maximum date, which the multiViewCalendar can show.

Parameters

value - System.DateTime

The value for Max

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Max(new DateTime(2024,12,31))
            )
             

Messages(System.Action)

Allows localization of the strings that are used in the widget.

Parameters

configurator - System.Action<MultiViewCalendarMessagesSettingsBuilder>

The configurator for the messages setting.

RETURNS

Returns the current instance of MultiViewCalendarBuilder .

Min(System.DateTime)

Specifies the minimum date, which the multiViewCalendar can show.

Parameters

value - System.DateTime

The value for Min

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Min(new DateTime(2024,1,1))
            )
             

Views(System.Double)

This property controls how many months to be shown at same time. By default it shows two months.

Parameters

value - System.Double

The value for Views

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Views(2)
            )
             

Range(System.Action)

Configures the Kendo UI MultiViewCalendar range settings.

Parameters

configurator - System.Action<MultiViewCalendarRangeSettingsBuilder>

The configurator for the range setting.

RETURNS

Returns the current instance of MultiViewCalendarBuilder .

Selectable(System.String)

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.

Parameters

value - System.String

The value for Selectable

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Selectable("multiple")
            )
             

SelectDates(System.DateTime[])

Specifies which dates to be selected when the multiViewCalendar is initialized.

Parameters

value - System.DateTime[]

The value for SelectDates

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Selectable("multiple")
                        .SelectDates(new DateTime[] { new DateTime(2024,7,5), new DateTime(2024,7,10) })
            )
             

ShowViewHeader(System.Boolean)

If set to true will render a header for every view.

Parameters

value - System.Boolean

The value for ShowViewHeader

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .ShowViewHeader()
            )
             

ShowViewHeader()

If set to true will render a header for every view.

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .ShowViewHeader()
            )
             

WeekNumber(System.Boolean)

If set to true a week of the year will be shown on the left side of the multiViewCalendar.

Parameters

value - System.Boolean

The value for WeekNumber

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .WeekNumber(true)
            )
             

WeekNumber()

If set to true a week of the year will be shown on the left side of the multiViewCalendar.

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .WeekNumber(true)
            )
             

Start(Kendo.Mvc.UI.CalendarView)

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..

Parameters

value - CalendarView

The value for Start

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Start(CalendarView.Month)
            )
             

Value(System.DateTime)

Specifies the selected date.

Parameters

value - System.DateTime

The value for Value

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Value("2024/07/05")
            )
             

ShowOtherMonthDays(System.Boolean)

When this configuration is enabled, the MultiViewCalendar will render days from the previous and next months in the current views.

Parameters

value - System.Boolean

The value for ShowOtherMonthDays

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @(Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .ShowOtherMonthDays()
             )
             

ShowOtherMonthDays()

When this configuration is enabled, the MultiViewCalendar will render days from the previous and next months in the current views.

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @(Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .ShowOtherMonthDays()
             )
             

Depth(Kendo.Mvc.UI.CalendarView)

Specifies the navigation depth.

Parameters

value - CalendarView

The value for Depth

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Depth(CalendarView.Month)
            )
             

CenturyCellsFormat(Kendo.Mvc.UI.CenturyCellsFormats)

Defines the century cell format.

Parameters

value - CenturyCellsFormats

The value for CenturyCellsFormat

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @(Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .Start(CalendarView.Century)
                        .CenturyCellsFormat(CenturyCellsFormats.Short)
             )
             

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<MultiViewCalendarEventBuilder>

The client events action.

RETURNS

Returns the current MultiViewCalendarBuilder instance.

Example

Razor
 
            @(Html.Kendo().MultiViewCalendar()
                  .Name("MultiViewCalendar")
                  .Events(events => events
                      .Change("onChange")
                  )
            )
             

ToComponent()

Returns the internal view component.

RETURNS

The instance that represents the component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

The name.

RETURNS

Returns the current instance.

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

The name.

RETURNS

Returns the current instance.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

RETURNS

Returns the current instance.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean,System.Boolean)

Parameters

deferred - System.Boolean

RETURNS

Returns a DeferredWidgetBuilder instance.

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

RETURNS

Returns the current instance.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

RETURNS

Returns the current instance.

ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Object

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

RETURNS

Returns the current instance.

ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

RETURNS

Returns the current instance.

Render()

Renders the component in place.

ToHtmlString()

Returns the HTML representation of the component.

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

Returns the client template for the component.

AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

Parameters

value - System.Boolean

RETURNS

Returns the current instance.

In this article
PropertiesWriteAction - FuncMethodsDisableDates(System.Collections.Generic.IEnumerable)DisableDates(System.DayOfWeek[])DisableDates(System.String)FooterId(System.String)MonthTemplate(System.Action)MonthTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)MonthTemplateId(System.String)MonthTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)MonthTemplateHandler(System.String)MonthTemplate(System.String)AllowReverse(System.Boolean)AllowReverse()Culture(System.String)Dates(System.DateTime[])Footer(System.String)Format(System.String)Max(System.DateTime)Messages(System.Action)Min(System.DateTime)Views(System.Double)Range(System.Action)Selectable(System.String)SelectDates(System.DateTime[])ShowViewHeader(System.Boolean)ShowViewHeader()WeekNumber(System.Boolean)WeekNumber()Start(Kendo.Mvc.UI.CalendarView)Value(System.DateTime)ShowOtherMonthDays(System.Boolean)ShowOtherMonthDays()Depth(Kendo.Mvc.UI.CalendarView)CenturyCellsFormat(Kendo.Mvc.UI.CenturyCellsFormats)Events(System.Action)ToComponent()Expression(System.String)Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)Name(System.String)Deferred(System.Boolean)HtmlAttributes(System.Object)HtmlAttributes(System.Collections.Generic.IDictionary)ScriptAttributes(System.Object,System.Boolean)ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)Render()ToHtmlString()WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)ToClientTemplate()AsModule(System.Boolean)
Not finding the help you need?
Contact Support