RealGrid2 Guide
Validation
Validation passed

Pass validation

When validating a value, if the error.level set in editOptions.commitLevel is set to ValidationLevel or a low level, validation passes. When passed, the ValidationLevel icon is displayed in the cell.

Try editing the value in the “Payment” column to 100,000 or higher.

commitLevel settings

gridView.editOptions.commitLevel = "warning";
 
//validation check
gridView.onValidateColumn = function(grid, column, inserting, value, itemIndex, dataRow) {
     var error = {};
     if (column.fieldName === "SaveCost") {
         if (value < 50000) {
             error.level = "error";
             error.message = "Payment must be over 50,000.";
         }else if(value >= 100000){
             error.level = "warning";
             error.message = "Payment must be less than 100,000.";
         }
     };
     return error;
}