Hello, we found an error related with Grid and Validator.
Validation is not triggered sometimes on a grid edit box after editing a custom validation cell with backspace.
Reproduced on Firefox v26.0, using page http://demos.kendoui.com/web/grid/editing-custom-validation.html.
1 - Load the URL
2 - Click on “Add new record”
3 - Enter “aAbc” on ProductName
4 - Hit TAB and change focus to Unit Price. Validation message shows up stating that “ProductName should start with capital letter”.
5 - Hit Shift+TAB to return to ProductName field.
6 - Use left arrow on keyboard to place the cursos after “a” and hit backspace.
7 - Hit TAB to change focus again to Unit Price.
8 - At this moment, validation seems to not be triggered at 100% of times and the error message is still shown to the user.
9 - Although it is noticed less often, the same issue can be reproduced when the whole field is re-entered, instead of simply hitting backspace/delete.
Please check the image attached for an example.
Additional information about the error:
It is actually not a result of editing with backspace or delete.
The problem can be reproduced also when you re-type the complete string and set that to the same valid value it had previously.
For example, type in the demo Abc, switch fields, ProductName validates OK. Switch back, change ProductName to aAbc, switch field, ProductName is marked incorrect. Switch back, type in Abc again, switch field, error message is still present.
What happens is that the datasource model is not updated when the validation fails. So in the last time, when you enter the correct value, it probably compares to the last correct value it has on the model. As it is exactly the same as you have now on the UI control, the validation is not run.
It seems to be a consequence of some optimization that is attempted on the validation framework.
Regards
Validation is not triggered sometimes on a grid edit box after editing a custom validation cell with backspace.
Reproduced on Firefox v26.0, using page http://demos.kendoui.com/web/grid/editing-custom-validation.html.
1 - Load the URL
2 - Click on “Add new record”
3 - Enter “aAbc” on ProductName
4 - Hit TAB and change focus to Unit Price. Validation message shows up stating that “ProductName should start with capital letter”.
5 - Hit Shift+TAB to return to ProductName field.
6 - Use left arrow on keyboard to place the cursos after “a” and hit backspace.
7 - Hit TAB to change focus again to Unit Price.
8 - At this moment, validation seems to not be triggered at 100% of times and the error message is still shown to the user.
9 - Although it is noticed less often, the same issue can be reproduced when the whole field is re-entered, instead of simply hitting backspace/delete.
Please check the image attached for an example.
Additional information about the error:
It is actually not a result of editing with backspace or delete.
The problem can be reproduced also when you re-type the complete string and set that to the same valid value it had previously.
For example, type in the demo Abc, switch fields, ProductName validates OK. Switch back, change ProductName to aAbc, switch field, ProductName is marked incorrect. Switch back, type in Abc again, switch field, error message is still present.
What happens is that the datasource model is not updated when the validation fails. So in the last time, when you enter the correct value, it probably compares to the last correct value it has on the model. As it is exactly the same as you have now on the UI control, the validation is not run.
It seems to be a consequence of some optimization that is attempted on the validation framework.
Regards