Table of Contents

Class DateTimePicker

Namespace
Skyline.DataMiner.Utils.InteractiveAutomationScript
Assembly
Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll

Widget to show/edit a datetime.

public class DateTimePicker : TimePickerBase, IValidationWidget
Inheritance
DateTimePicker
Implements
Inherited Members
Extension Methods

Constructors

DateTimePicker()

Initializes a new instance of the DateTimePicker class.

DateTimePicker(DateTime)

Initializes a new instance of the DateTimePicker class.

Properties

AutoCloseCalendar

Gets or sets a value indicating whether the calendar pop-up will close when the user clicks a new date.

CalendarDisplayMode

Gets or sets the display mode of the calendar inside the date-time picker control. Default: CalendarMode.Month.

CustomTimeFormat

Gets or sets the time format string used when TimeFormat is set to DateTimeFormat.Custom.

DateTime

Gets or sets the datetime displayed in the datetime picker.

DisplayServerTime

Gets or sets a value indicating whether gets or sets whether the displayed time is the server time or local time.

HasDropDownButton

Gets or sets a value indicating whether the calendar control drop-down button is shown. Default: true.

HasTimePickerSpinnerButton

Gets or sets a value indicating whether the spin box of the calender control is shown. Default: true.

IsReadOnly

Gets or sets a value indicating whether the control is displayed in read-only mode. Read-only mode causes the widgets to appear read-write but the user won't be able to change their value. This only affects interactive scripts running in a web environment.

IsTimePickerSpinnerButtonEnabled

Gets or sets a value indicating whether the spin box of the calender is enabled. Default: true.

IsTimePickerVisible

Gets or sets a value indicating whether the time picker is shown within the calender control. Default: true.

Maximum

Gets or sets the maximum timestamp.

Minimum

Gets or sets the minimum timestamp.

TimeFormat

Gets or sets the time format of the time picker. Default: DateTimeFormat.ShortTime.

Tooltip

Gets or sets the tooltip.

ValidationState

Gets or sets the state indicating if a given input field was validated or not and if the validation was valid. This should be used by the client to add a visual marker on the input field.

ValidationText

Gets or sets the text that is shown if the validation state is invalid. This should be used by the client to add a visual marker on the input field.

Methods

LoadResult(IUIResults)

Load any changes made through user interaction.

RaiseResultEvents()

Raises zero or more events of the widget. This method is called after LoadResult(IUIResults) was called on all widgets.

Events

Changed

Triggered when a different datetime is picked. WantsOnChange will be set to true when this event is subscribed to.

FocusLost

Triggered when the user loses focus of the DateTimePicker. WantsOnFocusLost will be set to true when this event is subscribed to.