Bug Report T280287
Visible to All Users

Validation - Aggregated property validation can be bypassed when this single property is edited in the embedded DetailView of the ListView with MasterDetailMode = ListViewAndDetailView

created 10 years ago

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.

Comments (3)
Dennis Garavsky (DevExpress) 10 years ago

    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.

    Dennis Garavsky (DevExpress) 10 years ago

      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.

        Answers approved by DevExpress Support

        created 9 years ago (modified 9 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.