Available in the Full Version

Editors - Validation

This sample demonstrates how to use data annotation attributes to set validation options on igEditors.

This sample is designed for a larger screen size.

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

In this example, the standard data annotation attributes are applied to the model class to set the validation options. 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.

Code View

Copy to Clipboard