API REFERENCE
validationRules
Defines required values, ranges, lists, patterns, custom validation, and other input checks.
What does this API do?
Defines required values, ranges, lists, patterns, custom validation, and other input checks.
Exact input and result types
validationRules: ValidationRule[]| Item | Value |
|---|---|
| JavaScript name | validationRules |
| HTML attribute | validation-rules |
| Default | undefined |
| Input type | ValidationRule[] |
Usage flow
Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.
Read related types
Feature explanations and examples
- Data validation
Use declarative rules to check required values, numeric ranges, string formats, and custom conditions. The default mode may only mark invalid values, so explicitly set invalidEditMode to block saving when required.