Available in the Full Version
Editors > Data Annotation Validation
This sample uses CTP (Community Technical Preview) features. The API and behavior may change when these features are released with full support.
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.