AngularJs with kendo grid inline mode cancel deletes the existing records?

微笑、不失礼 提交于 2019-12-12 04:11:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!