This is a migrated thread and some comments may be shown as answers.

Validation in Grid's schema only fire once

1 Answer 139 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Kiman
Top achievements
Rank 1
Kiman asked on 11 Oct 2017, 08:36 AM

Hi, my KenDo UI version is 2017.3.913, my chrome version is 61.0.3163.100

I found that my custom validation rule only fire once when it get error,

here is DOJO code: http://dojo.telerik.com/OGIlA/3

you can re-enter this situation by these step:

1.open dojo link and enter full screen mode

2.open chrome dev tool and set break point on line 72 (

myrule:function(input){...

)

3.click edit button and change unit price to 7777, then it will enter break point.

4.continue, and change value to 7778, then it will enter break point again.

5.continue and change value to 7777, then you can see it will not enter break point ,no fire validate function.

I don't know where I do wrong, or something I forget to setting, please help , thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 13 Oct 2017, 10:31 AM
Hello Kiman,

Thank you for the detailed explanation and code sample provided.

I have inspected the Dojo and I can confirm that this is a know bug. The scenario is only reproducible with the Grid widget. The issue is caused by improper updated of the dirty flag of the corresponding dataItem, thus no change event is being triggered. 

The bug is logged in the Kendo UI GitHub repository and you can start tracking the progress that we make on it from the following issue. If any viable workaround for the issue is found, it will be posted in the comments.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Validation
Asked by
Kiman
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or