Package com.smartgwt.client.docs

# Interface GridValidation

public interface GridValidation
ListGrids support automatic validation of edited cells / records. This group is a collection of APIs related to the validation subsystem.

Default validation occurs in response to the user navigating between edit cells (see `ListGrid.validateByCell`) or whenever edited values are to be committed to the server for saving. Standard validation can also be triggered for a cell or row programmatically at any time.
When standard validation occurs, `ListGridField.validators` will be run on each cell to be validated.
In addition to this standard behavior developers can add custom errors to fields via `ListGrid.setFieldError()` / `ListGrid.setFieldError()`.

See Also:
  - `Editing`
  - `ListGrid.validateRow(int)`
  - `ListGrid.validateCell(int, java.lang.String)`
  - `com.smartgwt.client.widgets.grid.ListGrid#getRequiredFieldMessage`
  - `ListGrid.hasErrors()`
  - `ListGrid.rowHasErrors(int)`
  - `ListGrid.cellHasErrors(int, java.lang.String)`
  - `ListGrid.getRowErrors(int)`
  - `ListGrid.getCellErrors(int, java.lang.String)`
  - `ListGrid.setFieldError(int, java.lang.String, java.lang.String)`
  - `ListGrid.setRowErrors(int, java.lang.Object)`
  - `ListGrid.clearFieldError(int, int)`
  - `com.smartgwt.client.widgets.grid.ListGridField#getValidators`
  - `ListGridField.getValidateOnChange()`
  - `ListGridField.getRequired()`
  - `ListGrid.getValidateByCell()`
  - `ListGrid.getValidateOnChange()`
  - `ListGrid.getNeverValidate()`