DateTimeEdit

Here is an example that demonstrates the use of a DateTimeEdit component.

Example

DateTimeEdit (Extended Properties)

This demonstrates the most common properties that are availabe to set on the DateTimeEdit.

Example
Readonly? Required? Disabled? Date & TimeDate OnlyTime Only

** Note ** Future dates are disabled based on the DisabledDateFunc.

DateTimeEdit Class

Parameters

Name
Type
Default
Description
ChildContentRenderFragment?
Child content of the component
ColumnNamestring
Column logical name to bind the editor to from the table record.
Descriptionstring?
Description to be displayed in the tooltip.
Disabledbool?
Should the editor be disabled.
DisabledDateFuncFunc<DateTime, bool>?
Function to know if a specific day must be disabled.
DisplayLabelWhenAvailablebool
True
Specifies whether to display a lable if available.
DisplayTooltipWhenAvailablebool
True
Specifies whether to display a tooltip if available.
DisplayValidationErrorMessagebool
True
Should a validation error message be displayed when the component fails validation?
EditorTypeDateTimeEditorType?
Determines which editors are displayed for the column.
IsVisiblebool
True
Is the editor visible.
Labelstring?
Text to be displayed as a label for the editor.
ReadOnlybool?
Should the editor be read-only.
Requiredbool?
Should the value be required.
ValueDateTime?
Value of the column.

Methods

Name
Parameters
Type
Description
GetValidationErrorsList<string>
Returns a collection of the current validation errors.