FieldErrorsCollection
Description
A FieldErrorsCollection represents a collection of key/value pairs, where key is a string used to identify a field and value is an Iterable of error messages.
Properties
|
Property |
Element |
Type |
Description |
|---|---|---|---|
|
key |
|
string |
The name of the field in error on a data item. |
|
|
value |
Iterable<any> |
A list of error messages associated to the field of a data item. |
Examples
const errors = {
price: ["The price must be greater than or equal to zero."]
};
In this example, the “errors” is the return value of the DataGrid.getValidationErrors()[0].fieldErrors : all the validation errors of the first dataItem in error. It shows that the “price” ColumnDefinition (of this data item) is currently in error because the value is lower than 0.
Need help? Contact us!