MultiViewCalendarBuilder
Defines the fluent interface for configuring the MultiViewCalendar.
Methods
Culture(System.String)
Specifies the culture info used by the MultiViewCalendar widget.
Parameters
culture - System.String
Example
@( Html.Kendo().MultiViewCalendar()
.Name("multiViewCalendar")
.Culture("de-DE")
)
Events(System.Action)
Configures the client-side events.
Parameters
clientEventsAction - System.Action<MultiViewCalendarEventBuilder>
The client events action.
Example
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
.Events(events =>
events.Select("onSelect")
)
)
Format(System.String)
Sets the date format, which will be used to parse and format the machine date.
Parameters
format - System.String
FooterId(System.String)
FooterId to be used for rendering the footer of the MultiViewCalendar.
Parameters
id - System.String
Example
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
.FooterId("widgetFooterId")
)
Footer(System.String)
Footer template to be used for rendering the footer of the MultiViewCalendar.
Parameters
footer - System.String
Example
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
.Footer("#= kendo.toString(data, "G") #")
)
Footer(System.Boolean)
Enable/disable footer.
Parameters
footer - System.Boolean
Example
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
.Footer(false)
)
Depth(Kendo.Mvc.UI.CalendarView)
Specifies the navigation depth.
Parameters
depth - CalendarView
Example
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
.Depth(CalendarView.Month)
)
Start(Kendo.Mvc.UI.CalendarView)
Specifies the start view.
Parameters
start - CalendarView
Example
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
.Start(CalendarView.Month)
)
Selectable(System.String)
Specifies the selection mode.
Parameters
selectable - System.String
Example
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
.Selectable("multiple")
)
SelectDates(System.Collections.Generic.IList)
Specifies which dates to be selected if multiple selection mode is enabled.
Parameters
selectDates - System.Collections.Generic.IList<DateTime>
ShowViewHeader(System.Boolean)
If set to true will render a header for every view.
Parameters
value - System.Boolean
The value for ShowViewHeader
ShowViewHeader()
If set to true will render a header for every view.
MonthTemplateId(System.String)
MonthTemplateId to be used for rendering the cells of the MultiViewCalendar.
Parameters
id - System.String
Example
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
.MonthTemplateId("widgetMonthTemplateId")
)
MonthTemplateView(System.Web.Mvc.MvcHtmlString)
MonthTemplate to be used for rendering the cells of the MultiViewCalendar.
Parameters
template - System.Web.Mvc.MvcHtmlString
Example
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
.MonthTemplateView(Html.Partial("widgetMonthTemplate"))
)
MonthTemplateHandler(System.String)
Parameters
template - System.String
MonthTemplate(System.String)
Templates for the cells rendered in the "month" view.
Parameters
content - System.String
Example
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
.MonthTemplate("#= data.value #")
)
MonthTemplate(System.Action)
Configures the content of cells of the MultiViewCalendar.
Parameters
monthTemplateAction - System.Action<MonthTemplateBuilder>
Example
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
.MonthTemplate(month => month.Content("#= data.value #"))
)
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.
Range(System.Action)
Parameters
configurator - System.Action<MultiViewCalendarRangeSettingsBuilder>
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
Min(System.DateTime)
Sets the minimal date, which can be selected in the MultiViewCalendar
Parameters
date - System.DateTime
Max(System.DateTime)
Sets the maximal date, which can be selected in the MultiViewCalendar
Parameters
date - System.DateTime
Views(System.Int32)
Sets the number of views in the MultiViewCalendar.
Parameters
views - System.Int32
WeekNumber(System.Boolean)
If set to true a week of the year will be shown on the left side of the MultiViewCalendar.
Parameters
weekNumber - System.Boolean
Value(System.Nullable)
Sets the value of the MultiViewCalendar
Parameters
date - System.Nullable<DateTime>
Value(System.String)
Sets the value of the MultiViewCalendar
Parameters
date - System.String
Selection(System.Action)
Configures the selection settings of the MultiViewCalendar.
Parameters
selectionAction - System.Action<MultiViewCalendarSelectionSettingsBuilder>
SelectAction settings, which includes Action name and IEnumerable of DateTime objects.
Dates(System.Collections.Generic.IList)
Specifies a list of dates, which will be passed to the month template.
Parameters
dates - System.Collections.Generic.IList<DateTime>
DisableDates(System.Collections.Generic.IEnumerable)
Parameters
disableDates - System.Collections.Generic.IEnumerable<String>
DisableDates(System.DayOfWeek[])
Specifies the disabled dates in the MultiViewCalendar widget using a function.
Parameters
days - System.DayOfWeek[]
Example
@( 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
Example
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
.DisableDates("disableDates")
)
ToComponent()
Returns the internal view component.
Name(System.String)
Sets the name of the component.
Parameters
componentName - System.String
The name of the component.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
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)
Parameters
deferred - System.Boolean
ModelMetadata(System.Web.Mvc.ModelMetadata)
Uses the Metadata of the Model.
Parameters
modelMetadata - System.Web.Mvc.ModelMetadata
The metadata set for the Model
HtmlAttributes(System.Object)
Sets the HTML attributes.
Parameters
attributes - System.Object
The HTML attributes.
HtmlAttributes(System.Collections.Generic.IDictionary)
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
AsChildComponent()
Render()
Renders the component.
Example
@(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
@( Html.Kendo().Grid(Model)
.Name("grid")
.DetailTemplate(product => {
)
Product Details:
<div>Product Name: @( product.ProductName )</div>
<div>Units In Stock: @( product.UnitsInStock )</div>
@(
})
.Render();
)