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

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.v18.2.dll

Declaration

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

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:

Library Object Type Path to MinErrorText
ASP.NET Controls and MVC Extensions ASPxDateEdit
.DateRangeSettings.MinErrorText
DateEditProperties
.DateRangeSettings.MinErrorText
MVCxColumnDateEditProperties
.DateRangeSettings.MinErrorText
MVCxDateEdit
.DateRangeSettings.MinErrorText
MVCxDateEditProperties
.DateRangeSettings.MinErrorText
MVCxDateEditProperties
.DateRangeSettings.MinErrorText
RibbonDateEditProperties
.DateRangeSettings.MinErrorText
ASP.NET Bootstrap Controls BootstrapDateEdit
.DateRangeSettings.MinErrorText
BootstrapDateEditProperties
.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