AngularJs with kendo grid inline mode cancel delet

2019-09-08 16:18发布

问题:

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