A newer version of this page is available. Switch to the current version.

RepositoryItemTimeSpanEdit.AllowEditDays Property

Gets or sets whether it is allowed to edit days in the time interval.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[DefaultValue(true)]
[SmartTagProperty("Allow Edit Days", "")]
[DXCategory("Behavior")]
public bool AllowEditDays { get; set; }

Property Value

Type Default Description
Boolean

true

true, if it is allowed to edit days in the time interval; otherwise, false.

Remarks

By default, an end-user is allowed to edit days using the edit box or tiles in the drop-down panel.

TimeSpanEdit_Days

Set the AllowEditDays property to false to hide the day tiles from the drop-down panel and prohibit editing days in the time interval.

To specify the maximum and minimum value for the days component of the time interval, use the RepositoryItemTimeSpanEdit.MaxDays and RepositoryItemTimeSpanEdit.MinDays properties.

To specify how the time span is edited from the edit box, assign the required date-time mask to the RepositoryItemTimeEdit.EditMask property. The editor supports mask specifiers for days (‘d’), hours (‘H’), minutes (‘m’), seconds (‘s’) and second fractions (‘f’). See examples below.


timeSpanEdit1.Properties.EditMask = "d.HH.mm.ss";
// Enables editing milliseconds from the drop-down.
timeSpanEdit1.Properties.AllowEditMilliseconds = true;
timeSpanEdit1.Properties.EditMask = "HH-mm-ss-fff";
timeSpanEdit1.Properties.EditMask = "d/HH/mm/ss/fff";
See Also