var rows = grid.getSelecteds();
if (rows.length > 0) {
if (confirm("如果合同已审核则不能删除,确定删除选中的合同?")) {
var ids = [];
for (var i = 0, l = rows.length; i < l; i++) {
var r = rows;
ids.push(r.AutoID);
}
var id = ids.join(',');
grid.loading("操作中,请稍后......");
$.ajax({
url: "../data/ServiceContract.aspx?method=RemoveContract&id=" + id,
success: function (text) {
mini.alert(text);
grid.reload();
0x800a01b6 - Microsoft JScript runtime error: Object doesn't support property or method 'removeNode'作者: xiaoNiuNew 时间: 2013-7-24 21:57:42
也是进行了删除操作,在ajax回调里reload
function delModel() {
var rows = grid.getSelecteds();
if (rows.length >= 1) {
if (confirm("确定要删除这" + rows.length + "个模型?")) {
for (var i = 0; i < rows.length; i++) {
rows[i]._state = "deleted";
}
var json = mini.encode(rows);