model.editable returns true for not defined fields

2 posts, 0 answers
  1. László
    László avatar
    12 posts
    Member since:
    Jul 2008

    Posted 08 Jul 2015 Link to this post


    The editable function returns true if a field is not defined. Shouldn't it return false for undefined fields? 

    <!DOCTYPE html>
        <meta charset="utf-8">
        <title>Kendo UI Snippet</title>
        <script src=""></script>
    var Product ={
        fields: {
            id: {
                editable: false
            name: {
                editable: true
    var product = new Product();
    alert(product.editable("id")); // outputs "false"
    alert(product.editable("name")); // outputs "true"
    alert(product.editable("name2")); // outputs "true", why???




  2. Rosen
    Rosen avatar
    3253 posts

    Posted 10 Jul 2015 Link to this post

    Hello László,

    This is due to the fact that editable is true by default as described in the documentation. Therefore, in order to make a field non editable it should be explicitly set to false otherwise it will be editable.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top