EditValidation
Model for verification conditions and methods for column-level or row-level data editing
Signature:
export interface EditValidationRemarks
Used in GridBase.setValidations().
Example
// string
gridView.setValidations("values['UnitPrice'] > 100");
// object
gridView.setValidations({
message: 'Too expensive!',
criteria: "values['UnitPrice'] > 100"
})
// Arrangement
gridView.setValidations([{
message: 'Too expensive!',
criteria: "values['UnitPrice'] > 100"
}])Properties
| Property | Type | Description |
|---|---|---|
| active | boolean | Whether verification is in progress |
| criteria | string | Verification formula |
| description | string | Explanation when verification fails |
| level | ValidationLevel | Validation result level |
| message | string | Error message displayed when verification fails |
| mode | ValidationMode | verification mode |
| name | string | name |
Properties Desc
active
Whether verification is in progress
Type - boolean
criteria
Verification formula
Type - string
description
Explanation when verification fails
Type - string
Remarks:
If a message is not specified when verification fails, it is used as a message.
level
Verification result level
Type - ValidationError
message
Error message displayed when verification fails
Type - string
mode
verification mode
Type - ValidationLevel
Remarks:
Executes when inserting, updating, or both.
name
name
Type - string
Remarks:
It is used as a message when verification fails or when the description is not set.