Represents a validation rule for DatePicker controls.
Inherits from
Neurodot.Forms.Silverlight.Controls. LocalizableValidationRole
Syntax
public class DatePickerValidationRole : LocalizableValidationRole
Properties
Name | Description |
AllowFuture | Gets or sets a flag indicating whether dates in the future are allowed. |
AllowNull | Gets or sets a flag indicating whether the user has to enter a date value. |
AllowPast | Gets or sets a flag indicating whether dates in the past are allowed. |
ValidFrom | Gets or sets a date from which the entered date is valid. |
ValidTo | Gets or sets a date up to which the entered date is valid. |
Methods
Name | Description |
Validate(object) | Validates assigned control and raises or hides validation error on the control. |
Remarks
The Validate(object) method checks whether the validated DatePicker control contains valid date depending on values of properties .
See methods RegisterValidationRole and RemoveValidationRole for details on how to assign custom validations to controls.