I have a business object with a FileData property for file attachments. I've given this property the RuleRequired attribute so that the user must attach a file when saving that type of business object.
However, I've discovered that if the user right-clicks on the property and chooses "Clear Content" from the popup menu that appears, they can save the business object without triggering the rule. (The application knows they've changed something, because the Save button is enabled once "Clear Content" is clicked.)
This only appears to happen when I'm viewing the object in a ListViewAndDetailView tab. And the rule is triggered if another property of the object is changed.
Hello Sam,
I can replicate this behavior locally with the Resume class from our MainDemo and I am debugging this behavior. I will get back to you once I have any news. Please bear with me.
This appears to be an issue in our code. At the moment, you can bypass it by providing a manual validation on the static CustomValidateRule and CustomNeedToValidateRule events of the DevExpress.Persistent.Validation.RuleSet class.
Ok. Thanks.