New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI TimePicker component

Definition

Constructors

Initializes a new instance of the TimePicker class.

C#
public TimePicker(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

Specifies the adaptive rendering of the component.

C#
public AdaptiveMode? AdaptiveMode { get; set; }

Allows customization of the subtitle's text in the adaptive view of the component.

C#
public string AdaptiveSubtitle { get; set; }

Allows customization of the title's text in the adaptive view of the component.

C#
public string AdaptiveTitle { get; set; }

Gets or sets the Animation.

C#
public PopupAnimation Animation { get; }

If this property is enabled and you have configured min and/or max values, and the user enters a value that falls out of that range, the value will automatically be set to either the minimum or maximum allowed value. This property has effect only when the dateInput of the component is enabled.

C#
public bool? AutoAdjust { get; set; }

Sets a value that indicates whether to automatically correct the segment when out of range. In order to work, dateInput prop should be set to true.

C#
public bool? AutoCorrectParts { get; set; }

Specifies the component type of the widget. "classic" - Uses the standard rendering of the widget. or "modern" - Uses new rendering with a fresh and modern look and feel..

C#
public string ComponentType { get; set; }

Specifies the culture info used by the widget.

C#
public string Culture { get; set; }

Gets or sets the CultureInfo.

C#
public CultureInfo CultureInfo { get; }

Specifies if the TimePicker will use DateInput for editing value

C#
public bool? DateInput { get; set; }

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.

C#
public DateTime[] Dates { get; set; }

Gets or sets the Enabled.

C#
public bool Enabled { get; set; }

Sets a value controlling how the color is applied.

C#
public FillMode? FillMode { get; set; }

Specifies a time that will be focused inside the popup when opened.

C#
public DateTime? FocusTime { get; set; }

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.

C#
public string Format { get; set; }

Specifies the inputmode attribute of the inner <input /> element. It is used to specify the type of on-screen keyboard that should be displayed when the user focuses the input.

C#
public string InputMode { get; set; }

Specifies the interval between values in the popup list. When the componentType is set to classic, the interval is specified in minutes (numeric values). or When the componentType is set to modern, the interval is specified as an object of hours, minutes and seconds..

C#
public int? Interval { get; set; }

IntervalSettings member.

C#
public IntervalSettings IntervalSettings { get; }

Adds a label before the timepicker. If the timepicker has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.

C#
public TimePickerLabelSettings Label { get; }

Specifies the end value in the popup list.

C#
public DateTime? Max { get; set; }

Allows localization of the strings that are used in the widget.

C#
public TimePickerMessagesSettings Messages { get; }

Specifies the start value in the popup list.

C#
public DateTime? Min { get; set; }

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.

C#
public string[] ParseFormats { get; set; }

The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.

C#
public TimePickerPopupSettings Popup { get; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }

Specifies the selected time.

C#
public DateTime? Value { get; set; }

Methods

GetElement method.

C#
protected override TagBuilder GetElement()
Returns:

TagBuilder

Overrides: WidgetBase.GetElement()

ProcessSettings method.

C#
public override void ProcessSettings()

Overrides: WidgetBase.ProcessSettings()

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)