jQuery MiniUI
标题:
停用的记录 让他不能修改
[打印本页]
作者:
TheWalkingDead
时间:
2015-5-5 16:16:00
标题:
停用的记录 让他不能修改
gridProductInfo.on("cellbeginedit", function (e) {
var record = e.record;
if (e.record.STATUS == "停用") {
alert("停用的记录不能修改");
gridProductInfo.cancelEdit();
}
});
我现在能alert出来 但是弹出来点击确定后 还是能编辑 gridProductInfo.cancelEdit();没有起作用 请问我应该怎么写
作者:
dforce
时间:
2015-5-5 16:19:54
e.cancel=true
作者:
TheWalkingDead
时间:
2015-5-5 16:28:07
dforce 发表于 2015-5-5 16:19
e.cancel=true
的确好了 那我要让他不能勾选这条记录 怎么写呢
作者:
dforce
时间:
2015-5-5 16:32:05
TheWalkingDead 发表于 2015-5-5 16:28
的确好了 那我要让他不能勾选这条记录 怎么写呢
onbeforeselect事件里e.cancel=true阻止
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2