Ticket Q305885
Visible to All Users
Duplicate

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

Validation - Check validation rules when input focus changes

Limit property value before validation

created 14 years ago

Hi,
I have a simple byte property in one of my domain objects, which is defined this way:
        private byte byteNumber;
        [RuleRange("Number Only 0-180", DefaultContexts.Save, 0, 180)]
        public byte MyNumber
        {
            get { return byteNumber; }
            set { SetPropertyValue("MyNumber", ref byteNumber, value); }
        }
Now, I have a requirement to check this value immediately after it has been inserted (in DetailView) and not wait for "Save". I assume it has to be some kind of client code (My project is XAF Web App).
Another requirement I have is to display some kind of a popup warning message if this value is over 90. How do I do this?
Thanks,
Golan

Comments (1)
DevExpress Support Team 14 years ago

    Hi Golan,
    I am afraid these features are not supported in the current version. We already have corresponding suggestions, and will implement them in future versions of our framework. Please track them via:
    Validation - Validate related rules when a control loses focus,
    Validation - Warn end-users about mistakes/inconsistencies without preventing them from saving changes.
    Thanks,
    Michael.

    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.