DataLudi Grid v.1 > Classes > GridBase
EditValidationCollection, specified in the Grid. The specified EditValidation runs when to commit row. It is able to specify for the validation by DataColumn.
column.setValidations([{
criteria: "value > 1000",
message: "Value must be bigger than 1000!",
mode: "always",
level: "warning"
}, {
criteria: "value < 20000",
message: "Value must be less than 2000!",
mode: "always",
level: "error"
}]);
Genenrally, it is included to column setting when to create a Grid.
grid.setColumns([{
name: 'colPrice',
fieldName: 'price',
validations: [{
criteria: "value > 1000",
message: "Value must be bigger than 1000!",
mode: "always",
level: "warning"
},
...
],
...
}];