Ticket T238222
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Validation - Check validation rules when input focus changes

Execute validation when lost focus of some field

created 10 years ago

Hello, I want to run the module validation when a field loses focus, besides running to save the record, how can I do that?

Answers approved by DevExpress Support

created 10 years ago (modified 10 years ago)

Hello Rubén,
I recommend you review the following threads where a similar issue was discussed:
how to subscribe to focus events and manually force validation
Validation and show error message in DetailView after LostFocus
Alternatively you can use  Access Editor Settings to access editor, subscribe to its events and trigger validation in code using following methods:
Validate
ValidateAll
ValidateAllTargets
ValidateRule
ValidateTarget
Please let me know if you need further assistance.

    Comments (1)

      Thanks Alexey !!

      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.