DateInput
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class DateInput : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseDateInput
Implements:
Inherited Members
Constructors
public DateInput(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
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; set; }
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; set; }
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; set; }
The maximum year value that is considered part of the current century.
public double? TwoDigitYearMax { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: