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.ShowClear Property

Gets or sets whether the dropdown calendar contains the Clear button (this button is not supported in CalendarView.TouchUI mode).

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

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

#Property Value

Type Default Description
Boolean true

true if the dropdown calendar contains the Clear button; otherwise, false.

#Remarks

The ShowClear property specifies the visibility of the Clear button in the dropdown calendar. The Clear button allows end-users to reset the currently selected date. When a user clicks this button, the edit value is set to the RepositoryItemDateEdit.NullDate property value and the dropdown is closed. By default, RepositoryItemDateEdit.NullDate contains null. You can set RepositoryItemDateEdit.NullDate to any date.

The ShowClear and RepositoryItemTextEdit.AllowNullInput properties are synchronized.

Note

The ShowClear property, and so the Clear button are not supported when the RepositoryItemDateEdit.CalendarView property is set to TouchUI.

See Also