How do I check if a Kendo Grid has had changes made to it?
问题 How can I check if a Kendo Grid has changes? I heard that there is a dirty property, but I cant find it. 回答1: Added rows will have the dirty property set to true and so will updated rows. But, deleted rows are stored elsewhere (in the _destroyed collection). Pass this function the datasource of your grid to see if it has changes. function doesDataSourceHaveChanges(ds) { var dirty = false; $.each(ds._data, function () { if (this.dirty == true) { dirty = true; } }); if (ds._destroyed.length > 0