Skip to main content
Tab

DateEditRangeSettings.RangeErrorText Property

Gets or sets the error text to be displayed within the editor’s error frame if the number of selected days exceeds the specified range limits.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue("The date range must be from {0} to {1} {2}")]
public string RangeErrorText { get; set; }

Property Value

Type Default Description
String "The date range must be from {0} to {1} {2}"

A String value that specifies the error text.

Property Paths

You can access this nested property as listed below:

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

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 RangeErrorText property to specify the error text to be displayed within the editor’s error frame if the number of selected days exceeds the specified limits. Note that the RangeErrorText property value is used provided the DateEditRangeSettings.MaxDayCount property is specified; otherwise, the text specified by the DateEditRangeSettings.MinErrorText 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" MaxDayCount="14" />
</dx:ASPxDateEdit>

ASPxDateEdit_RangeError

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