Syncfusion.AspNet by Syncfusion Inc.

<PackageReference Include="Syncfusion.AspNet" Version="20.1.0.57" />

.NET API 20,099,584 bytes

 DateTimePicker

public class DateTimePicker : CommonControl
Represents the DateTimePicker UI element.

Specifies the handler for server side OnChange event.

Specifies the handler for server side OnFocusOut event.

public bool AllowEdit { get; set; }

Gets or sets a value indicating the date time picker input field editable or not.

public string ClientSideOnBeforeClose { get; set; }

Gets or sets a value indicating this event gets fired before DateTimePicker popup closes.

public string ClientSideOnBeforeOpen { get; set; }

Gets or sets a value indicating this event gets fired before DateTimePicker popup opens.

public string ClientSideOnChange { get; set; }

Gets or sets a value indicating this event gets fired when the date or time value changed in the DateTimePicker textbox.

public string ClientSideOnClose { get; set; }

Gets or sets a value indicating this event gets fired when DateTimePicker popup closes.

public string ClientSideOnCreate { get; set; }

Gets or sets a value indicating this event gets fired when DateTimePicker control is created.

public string ClientSideOnDestroy { get; set; }

Gets or sets a value indicating this event gets fired when the DateTimePicker is destroyed successfully.

public string ClientSideOnFocusIn { get; set; }

Gets or sets a value indicating this event gets fired when DateTimePicker input field receives focus.

public string ClientSideOnFocusOut { get; set; }

Gets or sets a value indicating this event gets fired when DateTimePicker input field loses focus.

public string ClientSideOnOpen { get; set; }

Gets or sets a value indicating this event gets fired when DateTimePicker popup opens.

public string CssClass { get; set; }

Gets or sets the root CSS class to DateTimePicker for theme customization.

public string DateTimeFormat { get; set; }

Gets or sets the date time format to be displayed in DateTimePicker's input field.

public ButtonText DateTimePickerButtonText { get; set; }

Gets or sets the value indicating custom text for the buttons inside the DateTimePicker popup.

Gets or sets a value indicating drilldown to multiple levels of view (hours/minutes/seconds) in DateTimePicker popup.

public Header DayHeaderFormat { get; set; }

Gets or sets a value indicating the header format of days in the calendar.

public Period DepthLevel { get; set; }

Gets or sets a value indicating the navigation drill down level in the calendar. This is applicable when start level view is lower than depth level view.

public bool EnableAnimation { get; set; }

Gets or sets the value indicating the animation effect when DateTimePicker popup opens/closes.

public bool Enabled { get; set; }

Gets or sets a value indicating whether the control can respond to user interaction.

public bool EnablePersistence { get; set; }

Gets or set the value indicating DateTimePicker model value even after form post back/browser refresh sustains or not.

public bool EnableRTL { get; set; }

Gets or sets the value to align the input field and popup in right to left direction.

public bool EnableStrictMode { get; set; }

Gets or sets a value to allow the invalid date in the DateTimePicker input field.

public string HeaderFormat { get; set; }

Gets or sets a value indicating the header format to be displayed in the calendar inside the DateTimePicker popup.

public string Height { get; set; }

Gets or sets a value indicating the height of the DateTimePicker input field.

public IDictionary<string, object> HtmlAttributes { get; set; }

public int Interval { get; set; }

Gets or sets a value indicating the time interval(in minutes) between the two adjacent time values in the time popup.

public string Locale { get; set; }

Gets or sets the culture to display the DateTimePicker in the specified culture.

public DateTime? MaxDateTime { get; set; }

Gets or sets a value indicating the maximum value of the DateTimePicker.

public DateTime? MinDateTime { get; set; }

Gets or sets a value indicating the minimum value of the DateTimePicker.

public DateTimePickerProperties Model { get; set; }

Gets or sets the DateTimePicker model object of the DateTimePicker properties.

public string Name { get; set; }

Specifies the Name of the DateTimePicker

public bool ReadOnly { get; set; }

Gets or sets a value indicating editing/selecting the date/time in DateTimePicker is allowed or not.

public bool ShowOtherMonths { get; set; }

Gets or sets the value indicating days of adjacent months in the current month calendar of DateTimePicker.

public bool ShowPopupButton { get; set; }

Gets or sets the value indicating DateTime icon button in the input field.

public bool ShowRoundedCorner { get; set; }

Gets or sets the value indicating the DateTimePicker input field and popup with rounded corners or not

public int StartDay { get; set; }

Gets or sets a value indicating the calendar's start day of the week in the DateTimePicker popup.

public Period StartLevel { get; set; }

Gets or sets a value indicating the start level (days/month/year) view in the calendar.

public int StepMonths { get; set; }

Gets or sets a value indicating the number of months to navigate for one click of next and previous buttons in DateTimePicker popup.

public string TimeDisplayFormat { get; set; }

Gets or sets the time format to be displayed as time values in the DateTimePicker popup.

public int TimePopupWidth { get; set; }

Gets or sets the width of the time dropdown inside DateTimePicker popup.

public bool TimeZone { get; set; }

Gets or sets the TimeZone to display the DateTimePicker value with considered local time zone value.

public List<KeyValue> ValidationMessage { get; set; }

Gets or sets validation messages for DateTimePicker input.

public List<KeyValue> ValidationMessages { get; set; }

Gets or sets validation messages for DateTimePicker input.

protected Dictionary<string, object> ValidationMsg { get; protected set; }

Gets or sets jQuery validation messages for DateTimePicker input.

protected Dictionary<string, object> ValidationMsgs { get; protected set; }

Gets or sets jQuery validation messages for DateTimePicker input.

public List<KeyValue> ValidationRule { get; set; }

Gets or sets validation rules for DateTimePicker input.

public Dictionary<string, object> ValidationRules { get; set; }

Gets or sets jQuery validation custom rules for DateTimePicker input.

public DateTime? Value { get; set; }

Gets or sets the value in the DateTimePicker.

public string WatermarkText { get; set; }

Gets or sets the place holder value for DateTimePicker input field.

public string Width { get; set; }

Gets or sets a value indicating the width of the DateTimePicker input field.

Specifies the server side OnChange event.

Specifies the server side OnFocusOut event.

public DateTimePicker()

public List<string> DependentScripts()

Specifies the dependent scripts.

public string Render()

Renders the DateTimePicker instance.