editable
Determines if the specified field is editable or not.
Returns
Boolean—Returns true if the field is editable. Otherwise, returns false.
Parameters
field String
The field that will be checked.
Example - check if a field is editable or not
<script>
var Product = kendo.data.Model.define({
fields: {
id: {
editable: false
},
name: {
editable: true
}
}
});
var product = new Product();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(product.editable("id")); // outputs "false"
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(product.editable("name")); // outputs "true"
</script>
In this article