DateInput
Kendo UI DateInput component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class DateInput : WidgetBase, IHtmlAttributesContainer, IFormEditor
Inheritance: objectWidgetBaseDateInput
Implements:
Inherited Members
Constructors
Initializes a new instance of the DateInput class.
Properties
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.
public bool? AutoAdjust { get; set; }
Sets a value that indicates whether to automatically correct the segment when out of range
public bool? AutoCorrectParts { get; set; }
A string array representing keys that when pressed will force a move to the next segment. By default the culture specific symbols that match / and : are used.
public string[] AutoSwitchKeys { get; set; }
A value indicating whether to automatically move to the next segment after a valid value is provided for the current
public bool? AutoSwitchParts { get; set; }
A value indicating whether the mouse scroll can be used to increase/decrease the segments values
public bool? EnableMouseWheel { get; set; }
Sets a value controlling how the color is applied.
public FillMode? FillMode { get; set; }
Specifies the format, which is used to format the value of the DateInput displayed in the input. The format also will be used to parse the input.
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.
public string InputMode { get; set; }
Adds a label before the dateinput. If the dateinput has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.
public DateInputLabelSettings Label { get; }
Specifies the maximum date which can be entered in the input.
public DateTime? Max { get; set; }
The messages that DateInput uses. Use it to customize or localize the placeholders of each date/time part.
public DateInputMessagesSettings Messages { get; }
Specifies the minimum date that which be entered in the input.
public DateTime? Min { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
An object with the different steps for incrementing/decrementing the various segments
public DateInputStepsSettings Steps { get; }
The maximum year value that is considered part of the current century.
public double? TwoDigitYearMax { get; set; }
Methods
GetElement method.
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
Implements:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: