dirty Boolean

Indicates whether the model is modified.

Example - use the dirty field

<script>
var model = new kendo.data.Model({
    name: "John Doe"
});

/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(model.dirty); // outputs "false"
model.set("name", "Jane Doe");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(model.dirty); // outputs "true"
</script>
In this article