Class DateTimePickerProperties
Inherited Members
Namespace: Syncfusion.JavaScript.Models
Assembly: Syncfusion.EJ.dll
Syntax
public class DateTimePickerProperties : EJTagHelper
Constructors
DateTimePickerProperties()
Initializes a new instance of the DateTimePickerProperties class.
Declaration
public DateTimePickerProperties()
Properties
AllowEdit
Gets or sets a value indicating the date picker input field editable or not.
Declaration
[JsonProperty("allowEdit")]
public bool AllowEdit { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
BeforeClose
Gets or sets a value indicating this event gets fired before DateTimePicker popup closes.
Declaration
[JsonProperty("beforeClose")]
public string BeforeClose { get; set; }
Property Value
Type | Description |
---|---|
System.String |
BeforeOpen
Gets or sets a value indicating this event gets fired before DateTimePicker popup opens.
Declaration
[JsonProperty("beforeOpen")]
public string BeforeOpen { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Change
Gets or sets a value indicating this event gets fired when the date or time value changed in the DateTimePicker textbox.
Declaration
[JsonProperty("change")]
public string Change { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Close
Gets or sets a value indicating this event gets fired when DateTimePicker popup closes.
Declaration
[JsonProperty("close")]
public string Close { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Create
Gets or sets a value indicating this event gets fired when DateTimePicker control is created.
Declaration
[JsonProperty("create")]
public string Create { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CssClass
Gets or sets the root CSS class to DateTimePicker for theme customization.
Declaration
[JsonProperty("cssClass")]
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DateTimeFormat
Gets or sets the date time format to be displayed in DateTimePicker's input field.
Declaration
[JsonProperty("dateTimeFormat")]
public string DateTimeFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DateTimePickerButtonText
Gets or sets the value indicating custom text for the buttons inside the DateTimePicker popup.
Declaration
[JsonProperty("buttonText")]
public ButtonText DateTimePickerButtonText { get; set; }
Property Value
Type | Description |
---|---|
ButtonText |
DateTimePickerDrillDown
Gets or sets a value indicating drilldown to multiple levels of view (hours/minutes/seconds) in DateTimePicker popup.
Declaration
[JsonProperty("timeDrillDown")]
public TimeDrillDown DateTimePickerDrillDown { get; set; }
Property Value
Type | Description |
---|---|
TimeDrillDown |
DayHeaderFormat
Gets or sets a value indicating the header format of days in the calendar.
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("dayHeaderFormat")]
public Header DayHeaderFormat { get; set; }
Property Value
Type | Description |
---|---|
Header |
DepthLevel
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.
Declaration
[JsonProperty("depthLevel")]
[JsonConverter(typeof(StringEnumConverter))]
public Period DepthLevel { get; set; }
Property Value
Type | Description |
---|---|
Period |
Destroy
Gets or sets a value indicating this event gets fired when the DateTimePicker is destroyed successfully.
Declaration
[JsonProperty("destroy")]
public string Destroy { get; set; }
Property Value
Type | Description |
---|---|
System.String |
EnableAnimation
Gets or sets the value indicating the animation effect when DateTimePicker popup opens/closes.
Declaration
[JsonProperty("enableAnimation")]
public bool EnableAnimation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Enabled
Gets or sets a value indicating whether the control can respond to user interaction.
Declaration
[JsonProperty("enabled")]
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnablePersistence
Gets or set the value indicating DateTimePicker model value even after form post back/browser refresh sustains or not.
Declaration
[JsonProperty("enablePersistence")]
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnableRTL
Gets or sets the value to align the input field and popup in right to left direction.
Declaration
[JsonProperty("enableRTL")]
public bool EnableRTL { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnableStrictMode
Gets or sets a value to allow the invalid date in the DateTimePicker input field.
Declaration
[JsonProperty("enableStrictMode")]
public bool EnableStrictMode { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
FocusIn
Gets or sets a value indicating this event gets fired when DateTimePicker input field receives focus.
Declaration
[JsonProperty("focusIn")]
public string FocusIn { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FocusOut
Gets or sets a value indicating this event gets fired when DateTimePicker input field loses focus.
Declaration
[JsonProperty("focusOut")]
public string FocusOut { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HeaderFormat
Gets or sets a value indicating the header format to be displayed in the calendar inside the DateTimePicker popup.
Declaration
[JsonProperty("headerFormat")]
public string HeaderFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Height
Gets or sets a value indicating the height of the DateTimePicker input field.
Declaration
[JsonProperty("height")]
public string Height { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HtmlAttributes
Gets or sets the value to map the field of HTML attributes for the DateTimePicker element.
Declaration
[JsonProperty("htmlAttributes")]
public IDictionary<string, object> HtmlAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
Interval
Gets or sets a value indicating the time interval between the two adjacent time values in the time popup.
Declaration
[JsonProperty("interval")]
public int Interval { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsFor
Gets or sets a value indicating IsFor property.
Declaration
[JsonIgnore]
public bool IsFor { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Locale
Gets or sets the culture to display the DateTimePicker in the specified culture.
Declaration
[JsonProperty("locale")]
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MaxDateTime
Gets or sets a value indicating the maximum value of the DateTimePicker.
Declaration
[JsonProperty("maxDateTime")]
public object MaxDateTime { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
MinDateTime
Gets or sets a value indicating the minimum value of the DateTimePicker.
Declaration
[JsonProperty("minDateTime")]
public object MinDateTime { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Name
Specifies the name of the DateTimePicker.
Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Open
Gets or sets a value indicating this event gets fired when DateTimePicker popup opens.
Declaration
[JsonProperty("open")]
public string Open { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ReadOnly
Gets or sets a value indicating editing/selecting the date/time in DateTimePicker is allowed or not.
Declaration
[JsonProperty("readOnly")]
public bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShowOtherMonths
Gets or sets the value indicating days of adjacent months in the current month calendar of DateTimePicker.
Declaration
[JsonProperty("showOtherMonths")]
public bool ShowOtherMonths { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShowPopupButton
Gets or sets the value indicating DateTime icon button in the input field.
Declaration
[JsonProperty("showPopupButton")]
public bool ShowPopupButton { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShowRoundedCorner
Gets or sets the value indicating the DateTimePicker input field and popup with rounded corners or not
Declaration
[JsonProperty("showRoundedCorner")]
public bool ShowRoundedCorner { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
StartDay
Gets or sets a value indicating the calendar's start day of the week in the DateTimePicker popup.
Declaration
[JsonProperty("startDay")]
public int StartDay { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
StartLevel
Gets or sets a value indicating the start level (days/month/year) view in the calendar.
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("startLevel")]
public Period StartLevel { get; set; }
Property Value
Type | Description |
---|---|
Period |
StepMonths
Gets or sets a value indicating the number of months to navigate for one click of next and previous buttons in DateTimePicker popup.
Declaration
[JsonProperty("stepMonths")]
public int StepMonths { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Tag
Gets or sets the value indicating the tag of the DateTimePicker element.
Declaration
[JsonIgnore]
public string Tag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TimeDisplayFormat
Gets or sets the time format to be displayed as time values in the DateTimePicker popup.
Declaration
[JsonProperty("timeDisplayFormat")]
public string TimeDisplayFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TimePopupWidth
Gets or sets the width of the time dropdown inside DateTimePicker popup.
Declaration
[JsonProperty("timePopupWidth")]
public int TimePopupWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TimeZone
Gets or sets a value based on the client timezone in datetimepicker.
Declaration
[JsonProperty("timeZone")]
public bool TimeZone { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ValidationMessage
Gets or sets jQuery validation messages for DateTimePicker input.
Declaration
[JsonProperty("validationMessage")]
public Dictionary<string, object> ValidationMessage { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
ValidationMessages
Gets or sets jQuery validation messages for DateTimePicker input.
Declaration
[JsonProperty("validationMessages")]
public Dictionary<string, object> ValidationMessages { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
ValidationRules
Gets or sets jQuery validation custom rules for DateTimePicker input.
Declaration
[JsonProperty("validationRules")]
public Dictionary<string, object> ValidationRules { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
Value
Gets or sets the value in the DateTimePicker.
Declaration
[JsonProperty("value")]
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
WatermarkText
Gets or sets the place holder value for DateTimePicker input field.
Declaration
[JsonProperty("watermarkText")]
public string WatermarkText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Width
Gets or sets a value indicating the width of the DateTimePicker input field.
Declaration
[JsonProperty("width")]
public string Width { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetControlDetails()
Declaration
protected override object GetControlDetails()
Returns
Type | Description |
---|---|
System.Object |
Overrides
ShouldSerializeDateTimePickerButtonText()
Should serialize method for DateTimePicker ButtonText.
Declaration
public bool ShouldSerializeDateTimePickerButtonText()
Returns
Type | Description |
---|---|
System.Boolean |
ShouldSerializeDateTimePickerDrillDown()
Should serialize method for DateTimePicker DrillDown.
Declaration
public bool ShouldSerializeDateTimePickerDrillDown()
Returns
Type | Description |
---|---|
System.Boolean |