Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemDateEdit.ShowToday Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

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

#Property Value

Type Default Description
Boolean true

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

#Remarks

The ShowToday property specifies the Today button’s visibility in the Classic and Vista view styles (see RepositoryItemDateEdit.CalendarView).

In the Classic view style, a click on the Today button assigns Today’s date (RepositoryItemDateEdit.TodayDate) to the editor’s value (DateEdit.DateTime) and closes the dropdown. A click on the Today button does not change the time portion of the current value.

DateEdit-Classic-TodayButton

In the Vista view style, 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 TouchUI view style does not support the Today button, nor the ShowToday property.

See Also