Skip to main content
A newer version of this page is available. .

RepositoryItemDateEdit.ShowToday Property

Gets or sets whether to display the Today button in the dropdown calendar (in the CalendarView.Classic and CalendarView.Vista modes).

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(true)]
public virtual bool ShowToday { get; set; }

Property Value

Type Default Description
Boolean **true**

true, if the Today button is visible; otherwise,false.

Remarks

The view style of the dropdown calendar is specified by the RepositoryItemDateEdit.CalendarView mode. In the CalendarView.Classic and CalendarView.Vista modes, the dropdown calendar displays the Today button, whose visibility is controlled by the ShowToday property. Note that the button’s appearance and behavior is different in the CalendarView.Classic and CalendarView.Vista modes.

In the CalendarView.Classic mode, a click on the Today button assigns Today’s date (RepositoryItemDateEdit.TodayDate) to the edit value and thus to the DateEdit.DateTime property and closes the dropdown:

DateEdit-Classic-TodayButton

In the CalendarView.Vista mode, a click on the Today button highlights Today’s date (RepositoryItemDateEdit.TodayDate) in the calendar, but does not change the editor value and does not close the dropdown:

DateEdit-Vista-TodayButton

Note

The Today button, and therefore the ShowToday property are not supported when the RepositoryItemDateEdit.CalendarView property is set to TouchUI.

See Also