问题
I have grid and i am trying to add record it's adding and updating also. but while click edit and not changing any values and clicking cancel it's deleting existing row value from model. Please help me to resolve this issue.
I added dojo link here . http://dojo.telerik.com/enErE
回答1:
Your id
in schema should be an actual field.
"schema": {
"model": {
"id": "cuobjid",
}
Also, if id
is null i.e cuobjid
is null then it will remove the row.
Check updated dojo
来源:https://stackoverflow.com/questions/37071727/angularjs-with-kendo-grid-inline-mode-cancel-deletes-the-existing-records