Back to Devexpress

DateEditRangeSettings.MinErrorText Property

aspnet-devexpress-dot-web-dot-dateeditrangesettings-7d27b2f6.md

latest3.4 KB
Original Source

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

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
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 TypePath 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.

aspx
<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>

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

Online Demo: Data Editors - Date Range Picker

DateEditRangeSettings Class

DateEditRangeSettings Members

DevExpress.Web Namespace