与剑道电网在线模式AngularJs取消删除现有的记录? [英] AngularJs with kendo grid inline mode cancel deletes the existing records?

查看:134
本文介绍了与剑道电网在线模式AngularJs取消删除现有的记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有网格,我试图添加记录它的添加和更新也。但同时单击编辑并没有改变任何值,然后单击取消它从模型删除现有行值。请帮我解决这个问题。

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.

我在这里补充道场链接。 http://dojo.telerik.com/enErE

I added dojo link here . http://dojo.telerik.com/enErE

推荐答案

ID 的模式应该是一个实际的现场。

Your id in schema should be an actual field.

    "schema": {
                  "model": {
                    "id": "cuobjid",
}

此外,如果 ID 为空即 cuobjid 为null,则它会删除该行。

Also, if id is null i.e cuobjid is null then it will remove the row.

检查更新道场

这篇关于与剑道电网在线模式AngularJs取消删除现有的记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆