Display Settings PropertiesValidation rules

Description

The Validation rules property defines how your grid component will respond when a user inputs data into an editable field. As with the Field Properties list, these rules change depending on what type of control you are working with.

Invalid data type error message

The 'Invalid data type error message' rule works with all fields except character fields. This rule allows you to define a message that will display if the user types in an invalid date, time, short time, or number into an input field.

images/01_fframe16.png

Videos

Data Validation

The Grid component has exceptionally strong data validation features. This video demonstrates the validation features available, including Data validation rules, Data validation using custom Xbasic at the field level, Data validation events, and automatically honoring Field Rules for DBF tables.

Validating Data

The UX Component has an extremely rich set of features for validating data in the component. Validation rules can be defined declaratively, or by using code (either Javascript for client-side or Xbasic for server-side). Validation rules are evaluated on the client where possible (thus eliminating the need for an Ajax callback). Validation rules can be set to fire when the dialog is submitted, or immediately when the user tabs out of a field.

These video discuss the various validation options in the UX Component.

The videos below discuss the validation features of Alpha Anywhere. While these videos were recorded for the UX Component, the discussions about Validation rules, Validation Xbasic, and Immediate Validation apply to the Grid Component.