Validation in Grid's schema only fire once

2 posts, 1 answers
  1. Kiman
    Kiman avatar
    5 posts
    Member since:
    Jan 2016

    Posted 11 Oct 2017 Link to this post

    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.

  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    807 posts

    Posted 13 Oct 2017 Link to this post

    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.
Back to Top