Kendo.Mvc.UI.Fluent.DateTimePickerBuilder

Defines the fluent API for configuring the Kendo UI DateTimePicker

Methods

Animation(System.Boolean)

Use to enable or disable animation of the popup element.

Parameters

enable System.Boolean

The boolean value.

Example (ASPX)

@(Html.Kendo().DatePicker()
    .Name("DatePicker")
    .Animation(false) //toggle effect
)

Animation(System.Action<Kendo.Mvc.UI.Fluent.PopupAnimationBuilder>)

Configures the animation effects of the widget.

Parameters

animationAction System.Action<Kendo.Mvc.UI.Fluent.PopupAnimationBuilder>

The action which configures the animation effects.

Example (ASPX)

@(Html.Kendo().DatePicker()
    .Name("DatePicker")
    .Animation(animation =>
    {
        animation.Open(open =>
        {
            open.SlideIn(SlideDirection.Down);
        })
    })
)

DisableDates(System.DayOfWeek[])

Specifies the disabled dates in the DateTimePicker widget.

Example (ASPX)

@(Html.Kendo().DateTimePicker()
    .Name("dateTimePicker")
    .DisableDates(DayofWeek.Saturday, DayOfWeek.Sunday)
)

DisableDates(System.String)

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

Example (ASPX)

@( Html.Kendo().DateTimePicker()
    .Name("dateTimePicker")
    .DisableDates("disableDates")
)

Value(System.String)

Sets the value of the picker input

Value(System.Nullable<System.DateTime>)

Specifies the selected value.

Parameters

value System.Nullable<System.DateTime>

The value that configures the value.

Enable(System.Boolean)

Enables or disables the picker.

Footer(System.Boolean)

Enables/disables footer of the calendar popup.

FooterId(System.String)

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

Example (ASPX)

@(Html.Kendo().DateTimePicker()
    .Name("DateTimePicker")
    .FooterId("widgetFooterId")
)

Min(System.String)

Sets the minimal date, which can be selected in DatePicker.

Max(System.String)

Sets the maximal date, which can be selected in DatePicker.

MonthTemplateId(System.String)

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

Example (ASPX)

@(Html.Kendo().DateTimePicker()
    .Name("DateTimePicker")
    .MonthTemplateId("widgetMonthTemplateId")
)

MonthTemplate(System.String)

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

Example (ASPX)

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

ARIATemplate(System.String)

Specifies a template used to populate value of the aria-label attribute.

Parameters

value System.String

The value for ARIATemplate

ARIATemplateId(System.String)

Specifies a template used to populate value of the aria-label attribute.

Parameters

templateId System.String

The ID of the template element for ARIATemplate

Culture(System.String)

Specifies the culture info used by the widget.

Parameters

value System.String

The value for Culture

DateInput(System.Boolean)

Specifies if the DateTimePicker will use DateInput for editing value

Parameters

value System.Boolean

The value for DateInput

DateInput

Specifies if the DateTimePicker will use DateInput for editing value

Dates(System.DateTime[])

Specifies a list of dates, which will be passed to the month template of the DateView. All dates, which match the date portion of the selected date will be used to re-bind the TimeView.

Parameters

value System.DateTime[]

The value for Dates

Footer(System.String)

The template which renders the footer of the calendar. 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 format the value of the DateTimePicker displayed in the input. The format also will be used to parse the input.For more information on date and time formats please refer to Date Formatting.

Parameters

value System.String

The value for Format

Interval(System.Double)

Specifies the interval, between values in the popup list, in minutes.

Parameters

value System.Double

The value for Interval

Max(System.DateTime)

Specifies the maximum date, which the calendar can show.

Parameters

value System.DateTime

The value for Max

Min(System.DateTime)

Specifies the minimum date that the calendar can show.

Parameters

value System.DateTime

The value for Min

WeekNumber(System.Boolean)

If set to true a week of the year will be shown on the left side of the calendar. It is possible to define a template in order to customize what will be displayed.

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. It is possible to define a template in order to customize what will be displayed.

ParseFormats(System.String[])

Specifies the formats, which are used to parse the value set with value() method or by direct input. If not set the value of the options.format and options.timeFormat will be used. Note that value of the format option is always used. The timeFormat value also will be used if defined.

Parameters

value System.String[]

The value for ParseFormats

TimeFormat(System.String)

Specifies the format, which is used to format the values in the time drop-down list.

Parameters

value System.String

The value for TimeFormat

Value(System.DateTime)

Specifies the selected value.

Parameters

value System.DateTime

The value for Value

Start(Kendo.Mvc.UI.CalendarView)

Represents available types of calendar views.

Parameters

value Kendo.Mvc.UI.CalendarView

The value for Start

Depth(Kendo.Mvc.UI.CalendarView)

Specifies the navigation depth.

Parameters

value Kendo.Mvc.UI.CalendarView

The value for Depth

MonthTemplate(System.Action<Kendo.Mvc.UI.Fluent.DateTimePickerMonthTemplateSettingsBuilder>)

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.DateTimePickerMonthTemplateSettingsBuilder>

The configurator for the monthtemplate setting.

Events(System.Action<Kendo.Mvc.UI.Fluent.DateTimePickerEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.DateTimePickerEventBuilder>

The client events action.

Example (ASPX)

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