aspnet-devexpress-dot-web-dot-dateeditrangesettings-45da99d0.md
Gets or sets a value that specifies the text that will be displayed instead of the word ‘months’ in the editor’s error text.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("months")]
public string ErrorTextMonthsPlaceholder { get; set; }
<DefaultValue("months")>
Public Property ErrorTextMonthsPlaceholder As String
| Type | Default | Description |
|---|---|---|
| String | "months" |
A string value that specifies the text.
|
You can access this nested property as listed below:
| Object Type | Path to ErrorTextMonthsPlaceholder |
|---|---|
| ASPxDateEdit |
.DateRangeSettings .ErrorTextMonthsPlaceholder
| | DateEditProperties |
.DateRangeSettings .ErrorTextMonthsPlaceholder
|
Use the ErrorTextMonthsPlaceholder property to specify the text that will be displayed instead of the word ‘months’ in the editor’s error texts: DateEditRangeSettings.MinErrorText, DateRangeAttribute.MinErrorText.
Default templates are:
“The date range must be greater than or equal to {0} {1}.”
“The date range must be from {0} to {1} {2}”. ({2} represents days/month/years/decades)
Note
The ErrorTextMonthsPlaceholder property is in effect if the ASPxCalendar.PickerType/ASPxDateEdit.PickerType property is set to ‘Months’.
See Also