the problem willl occurs when the editable attribut of the grid is set to "inline" oder "popup".
If i change the value for a field, so it is not valid anymore, the validation message will be shown. When I change the filed back to the original valid value, the validation error is still displayed. The validation function is not called. If i set a break point on the custom validation function in the browser developer tools, the break point will not be arrived in this situation.
You can reproduce it with the "Grid / Custom validator editing" Demo
Steps:
- Press Edit. The row will be editable
- Write "A" in the field ProductName. The field will be valid.
- Write "a" in the field ProductName. The field will be invalid and the validation message "Product Name should start with capital letter" is shown.
- Write "A" in the field ProductName. The field will be valid but the validation message is still shown.
The same thing with the Fild "Unit Price" which have noch custom validation rather is set to "required"
Steps:
- Press Edit. The row will be editable
- Write 1 in the field Unit Price. The field will be valid.
- Clear the field Unit Price. The field will be invalid and the validation message "Unit Price is required" is shown.
- Write 1 in the field Unit Price. The field will be valid but the validation message is still shown.
What can I do to validate the fields right in this situation?