Kendo.Mvc.UI.Fluent.TimePickerBuilder

Defines the fluent API for configuring the Kendo UI TimePicker

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);
        })
    })
%>

Enable(System.Boolean)

Enables or disables the picker.

Value(System.Nullable<System.DateTime>)

Sets the value of the picker input

Value(System.String)

Sets the value of the picker input

Value(System.Nullable<System.TimeSpan>)

Sets the value of the timepicker input

Min(System.TimeSpan)

Sets the minimum time, which can be selected in timepicker

Min(System.String)

Sets the minimum time, which can be selected in timepicker

Max(System.TimeSpan)

Sets the maximum time, which can be selected in timepicker

Max(System.String)

Sets the maximum time, which can be selected in timepicker

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 TimePicker will use DateInput for editing value

Parameters

value System.Boolean

The value for DateInput

DateInput

Specifies if the TimePicker will use DateInput for editing value

Dates(System.DateTime[])

Specifies a list of dates, which are shown in the time drop-down list. If not set, the TimePicker will auto-generate the available times.

Parameters

value System.DateTime[]

The value for Dates

Format(System.String)

Specifies the format, which is used to format the value of the TimePicker 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.Int32)

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

Parameters

value System.Int32

The value for Interval

Max(System.DateTime)

Specifies the end value in the popup list.

Parameters

value System.DateTime

The value for Max

Min(System.DateTime)

Specifies the start value in the popup list.

Parameters

value System.DateTime

The value for Min

ParseFormats(System.String[])

Specifies the formats, which are used to parse the value set with the value method or by direct input. If not set the value of the options.format will be used. Note that value of the format option is always used.

Parameters

value System.String[]

The value for ParseFormats

Value(System.DateTime)

Specifies the selected time.

Parameters

value System.DateTime

The value for Value

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

Configures the client-side events.

Parameters

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

The client events action.

Example (ASPX)

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