Skip to main content
Tab

DateEditRangeSettings.MinErrorText Property

Gets or sets the error text to be displayed within the editor’s error frame if the number of selected days is less then the specified minimum value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue("The date range must be greater than or equal to {0} {1}")]
public string MinErrorText { get; set; }

Property Value

Type Default Description
String "The date range must be greater than or equal to {0} {1}"

A String value that specifies the error text.

Property Paths

You can access this nested property as listed below:

Object Type Path to MinErrorText
ASPxDateEdit
.DateRangeSettings .MinErrorText
DateEditProperties
.DateRangeSettings .MinErrorText

Remarks

The ASPxDateEdit control provides the capability to select a date range. You can use the DateEditRangeSettings.MinDayCount and DateEditRangeSettings.MaxDayCount properties to limit the number of days in a range.

Use the MinErrorText property to specify the error text to be displayed within the editor’s error frame if the number of selected days is less then the specified minimum value. Note that the MinErrorText property value is used provided the DateEditRangeSettings.MaxDayCount property is not specified; otherwise, the text specified by the DateEditRangeSettings.RangeErrorText property is displayed.

<dx:ASPxDateEdit ID="Start" runat="server" Caption="Start Date">
</dx:ASPxDateEdit>

<dx:ASPxDateEdit ID="ASPxDateEdit1" runat="server" Caption="End Date" >
     <DateRangeSettings StartDateEditID="Start" MinDayCount="7" />
</dx:ASPxDateEdit>

ASPxDateEdit_RangeErrorMin

Note

The editor’s date range settings should specified for the end-date ASPxDateEdit control. The properties specified for the start-date editor are not in effect.

See Also