RepositoryItemDateEdit.CalendarTimeEditing Property
Gets or sets whether an end-user can edit the time portion of a date value in the dropdown calendar.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
public virtual DefaultBoolean CalendarTimeEditing { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | Default | A DefaultBoolean value that specifies whether an end-user can edit the time portion of a date value in the dropdown calendar. |
Available values:
Name | Description | Return Value |
---|---|---|
True | The value is true. |
|
False | The value is false. |
|
Default | The value is specified by a global option or a higher-level object. |
|
Remarks
A DateEdit control allows the time portion of the date-time value to be edited via the control’s dropdown window. To enable this functionality, set the CalendarTimeEditing property to True.
In Vista and Classic modes, the editor’s dropdown contains an edit box (a TimeEdit editor) for editing the time portion. The dropdown also displays a clock face which automatically reflects changes in the time box:
To access the embedded time editor’s appearance and behavior settings, use the RepositoryItemDateEdit.CalendarTimeProperties property.
In the CalendarView.TouchUI mode, the dropdown contains additional tile columns for editing a time value.
If you allow an end-user to edit the time portion via the DateEdit control’s dropdown, you may also want to display the time portion in the control’s edit box. To do this, set the control’s mask and/or display format to the appropriate values. See the RepositoryItemTextEdit.Mask and RepositoryItem.DisplayFormat properties to learn more.
See RepositoryItemDateEdit.CalendarDateEditing to learn more.