DateTimePicker
Wisej.Web.DateTimePicker
Last updated
Was this helpful?
Wisej.Web.DateTimePicker
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represents a control that allows the user to select or type a date and a time.
There are 4 tooltip labels that can be localized for this control. They are already localized in the default languages provided by Wisej. An application can localize the tooltip labels by adding the string resources to the localized Resources.resx or /Properties/Resources.resx.
$Next year The tooltip text displayed on the popup calendar for the next-year button.
$Last year The tooltip text displayed on the popup calendar for the last-year button.
$Next month The tooltip text displayed on the popup calendar for the next-month button.
$Last month The tooltip text displayed on the popup calendar for the last-month button.
Initializes a new instance of the class.
Throws:
Throws:
Throws:
Throws:
Throws:
Bindable components implement this interface.
Controls that support drag & drop operations implement this interface.
Provides access to the validation events and properties property for controls that support validation.
All wisej components implement this interface.
Allows an object to serialize itself.
: Returns or sets whether the height of the control is set automatically. (Default: True
)
: Returns or sets the type of border that is drawn around the . (Default: Solid
)
: Returns or sets whether the checkbox in the is checked and the user can change the control's value. It works in conjunction with the property. (Default: True
)
: Returns or sets the custom date/time format string. (Default: ""
)
See for the supported format definitions.
: Returns or sets whether the user can edit the text in the control. (Default: True
)
: Enables or disables the browser's context menu. (Default: True
)
: Returns or sets the first day of the week as displayed in the month calendar. (Default: Default
)
: Returns or sets the format of the date/time value displayed in the control. (Default: Long
)
: Returns or sets whether the prompt characters in the input mask are hidden when the masked datetime picker loses focus. (Default: False
)
: Returns or sets a value that indicates that the control is invalid.
: Returns or sets the invalid message that is shown in the invalid tooltip. (Default: ""
)
: Provides a label related to the control.
: Returns or sets the localizable label associated with this control. (Default: ""
)
: Returns or sets the input mask. (Default: ""
)
When setting an edit mask on the control you must also select a that matches the mask. Otherwise the formatted date selected using the drop down calendar or by code will be formatted into a string that is not compatible with the edit mask. For example, if the mask is "##/##/####" the should be or should be "dd/MM/yyyy". See also the property to determine how the mask is stripped when reading the property.
: Returns or sets the maximum date and time that can be selected in the control.
The value assigned is not less than the value (12/31/9998).
The value assigned is less than the value (01/01/1753).
: Returns or sets the minimum date and time that can be selected in the control.
The value assigned is not less than the value (12/31/9998).
The value assigned is less than the value (01/01/1753).
: Returns or sets a value that indicates that the date time picker control has been modified by the user since the control was created or its contents were last set.
: Returns or sets the date/time assigned to the control with the difference that if the value is DateTime.MinValue it returns null.
This property should be used when the may hold a null date and it's bound to a database nullable column. Throws:
The set value is less than or more than .
: Returns or sets the character used to represent the absence of user input in the control. (Default: _
)
The character specified when setting this property is not a valid prompt character.
: Returns or sets whether the control is read-only. (Default: False
)
: Selects the text when gaining the focus. (Default: False
)
: Returns or sets a value indicating if a calendar button (drop down control) is displayed and can be used to pick the date/time value. (Default: True
)
: Returns or sets whether a check box is displayed to the left of the selected date. (Default: False
)
: Returns or sets whether the current date is displayed at the bottom of the control. (Default: False
)
: Returns or sets whether the popup calendar shows ToolTips. (Default: True
)
: Returns or sets a value indicating if the spin buttons (up and down controls) are displayed and can be used to adjust the date/time value. (Default: False
)
: Returns or sets whether the calendar control displays week numbers (1-52) to the left of each row of days. (Default: True
)
: Returns or sets the text associated with this control. (Default: ""
)
: Since 3.2.8 Returns or sets a value that determines whether literals and prompt characters are included in the value when the also specifies a . (Default: IncludeLiterals
)
This property lets you control the value returned by the property when there is an edit . The default is to remove the prompt and keep the literal in order to return a text value that can be parsed to a valid date: i.e. "1_/10/__23" is retuned as "1/10/23". Since 3.2.8 Note that when the value is null or empty, and regardless of the mask, the property returns an empty string.
: Returns or sets the value that is used by as today's date.
The value is less than the minimum allowable date; or the value is greater than the maximum allowable date.
: Returns or sets the format string used to display today's date. (Default: "d"
)
See for the supported format definitions.
: Returns the instance of associated with this control.
: Returns or sets the value assigned to the control.
The set value is less than or more than .
: Returns or sets the text to show when the field is empty. (Default: null
)
Fired when the value of the property changes.
Fired when the drop-down calendar is dismissed and disappears.
Fired when the drop-down calendar is shown.
Fired when the value of the property has changed.
Fired when the property value has changed.
Occurs after the input mask is changed.
Fired when the value of the property has changed.
Fired when the value of the property has changed.
Fired when a is clicked.
Fired when the property changes.
Represents a control that can be hosted in a .
Provides access to the associated with the controls that implement this interface.
Provides access to the property for coontrols that support the read-only mode.
Provides access to the property and event for controls that implement this interface.
All wisej controls derived from the class must implement this interface.