THEMES
THEME SETTINGS

Data Editors - Common Features Model Validation

*
Must be under 50 characters
+
-
Must be between 18 and 100
*
Must be a valid email
*
v
Send
Clear

What is "Model Validation"? See the following MSDN article to learn how the model validation works: How to: Validate Model Data Using DataAnnotations Attributes.

This demo illustrates how user input can be easily validated using a model-based ASP.NET MVC validation approach. DevExpress MVC extensions can be seamlessly integrated into the ASP.NET MVC validation infrastructure.

DevExpress MVC Editors have their own container for displaying validation error messages, which can be enabled via the ShowModelErrors property. This container allows you to manipulate validation messages more flexibly, then via the standard Html.ValidationMessageFor helper. You can control how errors should be displayed within editors by using settings exposed via the editor ValidationSettings property, such as the ErrorDisplayMode.


See Also:
Version: v2017 vol 1.7
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at info@devexpress.com or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.