Skip to main content

DateRangeAttribute Properties

Specifies the date range settings.
Name Description
ErrorMessage Gets or sets an error message to associate with a validation control if validation fails. Inherited from ValidationAttribute.
ErrorMessageResourceName Gets or sets the error message resource name to use in order to look up the ErrorMessageResourceType property value if validation fails. Inherited from ValidationAttribute.
ErrorMessageResourceType Gets or sets the resource type to use for error-message lookup if validation fails. Inherited from ValidationAttribute.
ErrorMessageString protected Gets the localized validation error message. Inherited from ValidationAttribute.
ErrorTextDaysPlaceholder Gets or sets a value that specifies the text that will be displayed instead of the word ‘days’ in the editor’s error text.
ErrorTextDecadesPlaceholder Gets or sets a value that specifies the text that will be displayed instead of the word ‘decades’ in the editor’s error text.
ErrorTextMonthsPlaceholder Gets or sets a value that specifies the text that will be displayed instead of the word ‘months’ in the editor’s error text.
ErrorTextYearsPlaceholder Gets or sets a value that specifies the text that will be displayed instead of the word ‘years’ in the editor’s error text.
MaxDayCount Gets or sets the maximum number of days in a range.
MaxLength Gets or sets the maximum length of the date range.
MinDayCount Gets or sets the minimum number of days in a range.
MinErrorText 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.
MinLength Specifies the minimum length of the date range.
RangeErrorText 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.
RequiresValidationContext Gets a value that indicates whether the attribute requires validation context. Inherited from ValidationAttribute.
StartDateEditFieldName Gets or sets the field name of the start-date editor.
TypeId When implemented in a derived class, gets a unique identifier for this Attribute. Inherited from Attribute.
See Also