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.v21.1.dll

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:

Library Object Type Path to RangeErrorText
ASP.NET MVC Extensions MVCxColumnDateEditProperties
.DateRangeSettings.RangeErrorText
MVCxDateEdit
.DateRangeSettings.RangeErrorText
MVCxDateEditProperties
.DateRangeSettings.RangeErrorText
ASP.NET Web Forms Controls ASPxDateEdit
.DateRangeSettings.RangeErrorText
DateEditProperties
.DateRangeSettings.RangeErrorText
RibbonDateEditProperties
.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