eXpress App Framework Team

This Blog

News

You are welcome to test the new XAF features prior to the 17.2 release: one, two, three, four, five, five, six

XAF - Validation Module Enhancements for Windows and the Web (Coming soon in v15.2)

In our upcoming release of the eXpressApp Framework, data validation occurs immediately after input focus changes when validation rule evaluation does not require querying additional data from the server. These rules are RuleRequiredField,RuleRegularExpressionRuleStringComparisonRuleValueComparison and RuleRange.


In-place validation is enabled for the Save context by default. To enable it for other contexts, use the AllowInplaceValidation property of the Validation | Contexts | Context node in the Model Editor.


Since rule evaluation occurs on the client side, in-place validation does not occur when:


The asterisk (*) symbol is automatically appended to an editor label when the RuleRequiredField is applied.

In-place validation engine relies on Controllers provided in our platform-specific ValidationWindowsFormsModule and ValidationAspNetModule components.

Note: The ASP.NET module was introduced in v15.2. In order to use in-place validation after upgrading your existing ASP.NET applications to v15.2, be certain to add  this module from the Toolbox into the Application Designer.

=====================================

The XAF Team would love your feedback. Please tell us what you think of these new features.

Published Nov 24 2015, 10:20 AM by
Bookmark and Share

Comments

Alex Miller

Hello Dennis,

This is great! Is the 'asterisk (*) symbol' optional? I'd rather have some sort of conditional formatting on required fields.

Thx!

Alex

November 24, 2015 10:46 AM

Nate Laff

I'll be blunt. I hate the automatic asterisk on RuleRequiredFields. Should be optional, and disabled by default.

November 24, 2015 2:23 PM

JeePee [NL]

I prefer a bold label instead of an asterisk added to the label…

November 24, 2015 11:49 PM

Vincent Micallef Decesare

Hi Dennis,

Love the client-side validation, it will make our applications look more professional.

However, when it comes to the asterisk I'd prefer if we had an option to switch it off at will. Reason being that we already implemented similar behavior ourselves(our users requested italic text style for labels of the required fields). As Alexandre Miller already mentioned, some conditional formatting would be a neater solution. Also, does it take 'TargetCriteria' into consideration?

Thanks and keep up the good work

November 25, 2015 1:37 AM

Dennis (DevExpress Support)

Thanks for your comments, guys. Sure, you can easily remove the required field mark from the layout label by setting the string RequiredFieldMark property under the Options | LayoutManagerOptions node in the Model Editor.

As for styling such labels (bold, italic) or even highlighting the editors themselves, we appreciate your feedback and will take it into account.

November 25, 2015 6:15 AM

Dennis (DevExpress Support)

@Vincent: The TargetCriteria parameter is not currently considered and this mark is always displayed in the layout. We will take your request into account as well.

November 25, 2015 6:20 AM

Gerhard Achrainer

Hi Dennis,

this is a great enhancement to the validation system. Like others, we have our own styling for required fields (red labels).

May I suggest to have the same flags that we see in the ConditionalAppearance module for the RequiredFieldMark (FontColor, FontStyle, BackColor)?

Thanks,

Gerhard

November 25, 2015 6:29 AM

Dennis (DevExpress Support)

@Gerhard: Thanks for your suggestion!

November 25, 2015 6:57 AM
LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2017 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners