Kendo Grid: update cannot read property 'data' of undefined

January 27, 2017
I'm posting this because I wasn't able to find the answer by googling.  It seems it's a fairly generic error that can mean a bunch of things, but this solved it for me.

Scenario


Kendo Grid, bound to remote datasource trying to enable CRUD.

When does it happen: Edit->Update

Error


Resolution

Was quite simple actually, my Datasource schema didn't define the "id" property
...
        schema: {
            model: {
                id: "UserId",
                ...
           }  
       }
...

Note to kendo guys

Would be nicer if the error messages were more specific, or I guess would be nicer if there were error messages not just js crashes.  This error could really be a bunch of things.



Image Description

Steve McNiven-Scott

Best\Only Blogger on this site. Therefore defacto blogger of the year Award Winner.