Clear ValidataionResults

Topics: Questions
Jun 13, 2013 at 10:25 AM
Have an Property decorated with the Attribute [Required].

If the field is empty when i click save I get the error Field is required. Thats correct. But how to delete this error when i click cancel. At the moment the error is still present.
Jun 13, 2013 at 12:34 PM
With the default validation of .NET, this is not possible. Once you validated, it will be set there as wrong. What you can do is write your own validation provider which allows for better customization of validation.