Available in the Full Version

Editors > Data Annotation Validation

Order


Ship Date












This sample is designed for a larger screen size.


On mobile, try rotating your screen, view full size, or email to another device.

This sample demonstrates how to use data annotation attributes to set validation options on igEditors. In the example the standard data annotation attributes are applied to the model class to set the validation options. In this sample, the ValidationMessage is applied to the order due date and ship method fields. This implementation shows how the igValidators automatically swap the error message into the helper and their default message is not shown. Use of ValidationMessageFor frees you to group and rearrange the validation messages in ways specific to your application when using the Infragistics Validator.

Code View

Copy to Clipboard