MultiViewCalendarBuilder
属性定义用于配置的连贯接口MultiViewCalendar.
方法
system . string)文化(
指定MultiViewCalendar小部件使用的区域性信息。
参数
文化- - - - - -系统。字符串
例子
@(Html.Kendo().MultiViewCalendar() .Name("multiViewCalendar") .Culture("de-DE"))
事件(System.Action)
配置客户端事件。
参数
clientEventsAction系统。行动<MultiViewCalendarEventBuilder>
客户端事件操作。
例子
@(Html.Kendo().MultiViewCalendar() .Name("MultiViewCalendar") .Events(events => events. select ("onSelect"))))
system . string)格式(
设置日期格式,该格式将用于解析和格式化机器日期。
参数
格式- - -系统。字符串
FooterId system . string) (
FooterId用于渲染MultiViewCalendar的页脚。
参数
id -系统。字符串
例子
@(Html.Kendo().MultiViewCalendar() .Name("MultiViewCalendar") .FooterId("widgetFooterId")))
页脚system . string) (
用于渲染MultiViewCalendar的页脚的页脚模板。
参数
页脚- - - - - -系统。字符串
例子
@(Html.Kendo().MultiViewCalendar() . name ("MultiViewCalendar") . footer ("#= kendo. "toString(data, "G") #")
页脚(System.Boolean)
启用/禁用页脚。
参数
页脚- - - - - -系统。布尔
例子
@(Html.Kendo().MultiViewCalendar() .Name("MultiViewCalendar") .Footer(false)))
深度(Kendo.Mvc.UI.CalendarView)
指定导航深度。
参数
深度,CalendarView
例子
@(Html.Kendo().MultiViewCalendar() .Name("MultiViewCalendar") .Depth(CalendarView.Month)))
开始(Kendo.Mvc.UI.CalendarView)
指定开始视图。
参数
开始- - - - - -CalendarView
例子
@(Html.Kendo().MultiViewCalendar() .Name("MultiViewCalendar") .Start(CalendarView.Month)))
选择system . string) (
指定选择模式。
参数
可选择的,系统。字符串
例子
@(Html.Kendo().MultiViewCalendar() .Name("MultiViewCalendar") .Selectable("multiple"))
SelectDates (System.Collections.Generic.IList)
指定启用多重选择模式时要选择的日期。
参数
selectDates -System.Collections.Generic.IList < DateTime >
ShowViewHeader (System.Boolean)
如果设置为true,将为每个视图呈现一个头部。
参数
价值——系统。布尔
ShowViewHeader的值
ShowViewHeader ()
如果设置为true,将为每个视图呈现一个头部。
MonthTemplateId system . string) (
MonthTemplateId用于渲染MultiViewCalendar的单元格。
参数
id -系统。字符串
例子
@(Html.Kendo().MultiViewCalendar() .Name("MultiViewCalendar") .MonthTemplateId("widgetMonthTemplateId")))
MonthTemplateView (System.Web.Mvc.MvcHtmlString)
MonthTemplate用于渲染MultiViewCalendar的单元格。
参数
模板- - -System.Web.Mvc.MvcHtmlString
例子
@(Html.Kendo().MultiViewCalendar() .Name("MultiViewCalendar") .MonthTemplateView(Html.Partial("widgetMonthTemplate"))))
MonthTemplateHandler system . string) (
参数
模板- - -系统。字符串
MonthTemplate system . string) (
在“month”视图中呈现的单元格模板。
参数
内容- - - - - -系统。字符串
例子
@(Html.Kendo().MultiViewCalendar() . name ("MultiViewCalendar") . monthtemplate ("#= data. "值#"))
MonthTemplate (System.Action)
配置MultiViewCalendar单元格的内容。
参数
monthTemplateAction系统。行动<MonthTemplateBuilder>
例子
@(Html.Kendo().MultiViewCalendar() . name ("MultiViewCalendar") . monthtemplate (month => month.)内容(“# =数据。值#")))
消息(System.Action)
允许对小部件中使用的字符串进行本地化。
参数
配置器-系统。行动<MultiViewCalendarMessagesSettingsBuilder>
消息设置的配置器。
范围(System.Action)
参数
配置器-系统。行动<MultiViewCalendarRangeSettingsBuilder>
分钟system . string) (
设置可在日历中选择的最小日期。
参数
日期-系统。字符串
马克斯system . string) (
设置可在日历中选择的最大日期。
参数
日期-系统。字符串
分钟(System.DateTime)
设置最小日期,可以在MultiViewCalendar中选择
参数
日期-系统。DateTime
马克斯(System.DateTime)
设置最大日期,可以在MultiViewCalendar中选择
参数
日期-系统。DateTime
视图(System.Int32)
设置MultiViewCalendar中的视图数量。
参数
视图- - - - - -系统。Int32
WeekNumber (System.Boolean)
如果设置为true,一年中的一个星期将显示在MultiViewCalendar的左侧。
参数
weekNumber -系统。布尔
值(System.Nullable)
设置MultiViewCalendar的值
参数
日期-系统。Nullable < DateTime >
system . string)值(
设置MultiViewCalendar的值
参数
日期-系统。字符串
选择(System.Action)
配置MultiViewCalendar的选择设置。
参数
selectionAction -系统。行动<MultiViewCalendarSelectionSettingsBuilder>
SelectAction设置,包括DateTime对象的Action名称和IEnumerable。
日期(System.Collections.Generic.IList)
指定日期列表,该列表将传递给月份模板。
参数
日期-System.Collections.Generic.IList < DateTime >
DisableDates (System.Collections.Generic.IEnumerable)
参数
disableDates -System.Collections.Generic.IEnumerable <字符串>
DisableDates (System.DayOfWeek [])
使用函数指定MultiViewCalendar小部件中禁用的日期。
参数
天-系统。DayOfWeek []
例子
@(Html.Kendo().MultiViewCalendar() . name ("MultiViewCalendar") . disabledates (DayofWeek.)星期六,dayofweek .星期日))
DisableDates system . string) (
使用函数指定MultiViewCalendar小部件中禁用的日期。
参数
处理程序,系统。字符串
例子
@(Html.Kendo().MultiViewCalendar() .Name("MultiViewCalendar") .DisableDates("disableDates")))
ToComponent ()
返回内部视图组件。
system . string)名称(
设置组件的名称。
参数
componentName -系统。字符串
组件的名称。
例子
@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read (read => read。Action("Orders_Read", "Grid"))))
延期(System.Boolean)
抑制初始化脚本呈现。注意,这个选项应该与Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean)一起使用。
参数
递延,系统。布尔
ModelMetadata (System.Web.Mvc.ModelMetadata)
使用模型的元数据。
参数
modelMetadata -System.Web.Mvc.ModelMetadata
模型的元数据集
HtmlAttributes (System.Object)
设置HTML属性。
参数
属性- - - - - -系统。对象
HTML属性。
HtmlAttributes (System.Collections.Generic.IDictionary)
参数
属性- - - - - -System.Collections.Generic.IDictionary <字符串、对象>
AsChildComponent ()
呈现()
呈现组件。
例子
@ (@Page继承= " System.Web.Mvc。ViewPage>") @(Html.Kendo(). grid (Model) .Name("grid") . detailtemplate (Product => {) Product Details: Product Name: @(Product . >>")库存单位:@(product. name) UnitsInStock @(}) .Render();)