Edit this page

editable

Determines if the specified field is editable or not.

Returns

Boolean true if the field is editable; false otherwise.

Parameters

field String

The field to check.

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy