Declined
Last Updated: 09 May 2016 11:26 by ADMIN
Justin
Created on: 20 Aug 2013 15:08
Category: Kendo UI for jQuery
Type: Feature Request
1
I found what I think is a bug in your ASP.NET MVC Grid (Sorry Not Kendo UI)
Steps to reproduce the bug

1) create a grid that uses “In Cell” editing and have a validation on a cell (in this example i will use a required field)
2) click in the required cell
3) click out of the required cell to cause the validation error to fire
4) click back into the cell which had the validation error
5) press escape 
6) click into a different cell and enter a value
7) click out of the cell 

This will cause the cell the be edited but it will not be marked as dirty!!!

The issue is that multiple submit handlers are getting assigned to the form I’ve updated the following to remove submit handlers after submit has been called.

I made a change to the telerik.grid.editing.min.js file to resolve the issue.  setting the submit handler to null after submitting the form seems to do the trick

_validateForm: function (n) {
            var o = this.form();
            if (o.length) {
                var p = o.validate();
                if (p) {
                    this.validate();
                    p.settings.submitHandler = function () {
                        n();
                        p.settings.submitHandler = a.noop
                    };
                    o.submit();

                    p.settings.submitHandler = null;
                }
            }
        },

2 comments
Justin
Posted on: 20 Aug 2013 16:44
http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=728382  submitted
ADMIN
Brandon
Posted on: 20 Aug 2013 16:24
Hi Justin,

Please report this via the ticketing system (from your Telerik account).

Thanks.