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

DateEditRangeSettings.ErrorTextDecadesPlaceholder Property

Gets or sets a value that specifies the text that will be displayed instead of the word 'decades' in the editor's error text.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue("decades")]
public string ErrorTextDecadesPlaceholder { get; set; }
<DefaultValue("decades")>
Public Property ErrorTextDecadesPlaceholder As String

Property Value

Type Default Description
String

"decades"

A string value that specifies the text.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ErrorTextDecadesPlaceholder
ASP.NET Controls and MVC Extensions ASPxDateEdit
.DateRangeSettings.ErrorTextDecadesPlaceholder
DateEditProperties
.DateRangeSettings.ErrorTextDecadesPlaceholder
MVCxColumnDateEditProperties
.DateRangeSettings.ErrorTextDecadesPlaceholder
MVCxDateEdit
.DateRangeSettings.ErrorTextDecadesPlaceholder
MVCxDateEditProperties
.DateRangeSettings.ErrorTextDecadesPlaceholder
MVCxDateEditProperties
.DateRangeSettings.ErrorTextDecadesPlaceholder
RibbonDateEditProperties
.DateRangeSettings.ErrorTextDecadesPlaceholder
ASP.NET Bootstrap Controls BootstrapDateEdit
.DateRangeSettings.ErrorTextDecadesPlaceholder
BootstrapDateEditProperties
.DateRangeSettings.ErrorTextDecadesPlaceholder

Remarks

Use the ErrorTextDecadesPlaceholder property to specify the text that will be displayed instead of the word 'decades' 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}."

    • {0} - Represents the number of days/month/years/decades.
    • {1} - Represents days/month/years/decades.
  • "The date range must be from {0} to {1} {2}". ({2} represents days/month/years/decades)

    • {0} - Represents the minimum number of days/month/years/decades in the date range.
    • {1} - Represents the maximum number of days/month/years/decades in the date range.
    • {1} - Represents days/month/years/decades.
NOTE

The ErrorTextDecadesPlaceholder property is in effect if the ASPxCalendar.PickerType/ASPxDateEdit.PickerType property is set to DatePickerType.Decades.

See Also