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();
console.log(product.editable("id")); // outputs "false"
console.log(product.editable("name")); // outputs "true"
</script>
In this article
Not finding the help you need? Improve this article