CalendarBuilder
属性定义用于配置的连贯接口日历.
方法
system . string)文化(
指定Calendar小部件使用的区域性信息。
参数
文化- - - - - -系统。字符串
例子
@ (Html.Kendo () .Calendar () . name(“日历”).Culture(“de-DE”))
事件(System.Action)
配置客户端事件。
参数
clientEventsAction系统。行动<CalendarEventBuilder>
客户端事件操作。
例子
@(Html.Kendo().Calendar() .Name("Calendar") .Events(events => events. select ("onSelect"))))
system . string)格式(
设置日期格式,该格式将用于解析和格式化机器日期。
参数
格式- - -系统。字符串
FooterId system . string) (
用于呈现日历页脚的FooterId。
参数
id -系统。字符串
例子
@(Html.Kendo().Calendar() .Name("Calendar") .FooterId("widgetFooterId")))
页脚system . string) (
用于呈现日历页脚的页脚模板。
参数
页脚- - - - - -系统。字符串
例子
@ (Html.Kendo () .Calendar () . name(“日历”).Footer(“# =剑道。toString(data, "G") #")
页脚(System.Boolean)
启用/禁用页脚。
参数
页脚- - - - - -系统。布尔
例子
@(Html.Kendo().Calendar() .Name("Calendar") .Footer(false))
深度(Kendo.Mvc.UI.CalendarView)
指定导航深度。
参数
深度,CalendarView
例子
@(Html.Kendo().Calendar() .Name("Calendar") .Depth(CalendarView.Month)))
开始(Kendo.Mvc.UI.CalendarView)
指定开始视图。
参数
开始- - - - - -CalendarView
例子
@(Html.Kendo().Calendar() .Name("Calendar") .Start(CalendarView.Month)))
选择system . string) (
指定选择模式。
参数
可选择的,系统。字符串
例子
@(Html.Kendo().Calendar() .Name("Calendar") .Selectable("multiple"))
SelectDates (System.Collections.Generic.IList)
指定启用多重选择模式时要选择的日期。
参数
selectDates -System.Collections.Generic.IList < DateTime >
MonthTemplateId system . string) (
MonthTemplateId用于呈现日历的单元格。
参数
id -系统。字符串
例子
@(Html.Kendo().Calendar() .Name("Calendar") .MonthTemplateId("widgetMonthTemplateId"))
MonthTemplate system . string) (
在“month”视图中呈现的单元格模板。
参数
内容- - - - - -系统。字符串
例子
@(Html.Kendo().Calendar() . name ("Calendar") . monthtemplate ("#= data. "值#"))
MonthTemplate (System.Action)
配置日历单元格的内容。
参数
monthTemplateAction系统。行动<MonthTemplateBuilder>
例子
@(Html.Kendo().Calendar() . name ("Calendar") . monthtemplate (month => month.)内容(“# =数据。值#")))
消息(System.Action)
允许对小部件中使用的字符串进行本地化。
参数
配置器-系统。行动<CalendarMessagesSettingsBuilder>
消息设置的配置器。
分钟system . string) (
设置可在日历中选择的最小日期。
参数
日期-系统。字符串
马克斯system . string) (
设置可在日历中选择的最大日期。
参数
日期-系统。字符串
分钟(System.DateTime)
设置可在日历中选择的最小日期
参数
日期-系统。DateTime
马克斯(System.DateTime)
设置可在日历中选择的最大日期
参数
日期-系统。DateTime
WeekNumber (System.Boolean)
如果设置为true,一年中的一个星期将显示在日历的左侧。
参数
weekNumber -系统。布尔
值(System.Nullable)
设置日历的值
参数
日期-系统。Nullable < DateTime >
system . string)值(
设置日历的值
参数
日期-系统。字符串
选择(System.Action)
配置日历的选择设置。
参数
selectionAction -系统。行动<CalendarSelectionSettingsBuilder>
SelectAction设置,包括DateTime对象的Action名称和IEnumerable。
DisableDates (System.Collections.Generic.IEnumerable)
参数
disableDates -System.Collections.Generic.IEnumerable <字符串>
DisableDates (System.DayOfWeek [])
使用函数指定Calendar小部件中禁用的日期。
参数
天-系统。DayOfWeek []
例子
@(Html.Kendo(). calendar (). name ("calendar") . disabledates (DayofWeek.)星期六,dayofweek .星期日))
DisableDates system . string) (
使用函数指定Calendar小部件中禁用的日期。
参数
处理程序,系统。字符串
例子
@(Html.Kendo().Calendar() .Name("calendar") .DisableDates("disableDates")))
system . string)组件类型(
指定小部件的组件类型。"classic" -使用小部件的标准呈现。或“现代”-使用新的渲染与新鲜和现代的外观和感觉..
参数
价值——系统。字符串
ComponentType的值
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 <字符串、对象>
呈现()
呈现组件。
例子
@ (@Page继承= " System.Web.Mvc。ViewPage>") @(Html.Kendo(). grid (Model) .Name("grid") . detailtemplate (Product => {) Product Details: Product Name: @(Product . >>")库存单位:@(product. name) UnitsInStock @(}) .Render();)