function updateDataResource() {
enableItems("1");
grid.setAllowCellEdit(true);
} function OnCellCommitEdit(e) { var grid = e.sender; var record = e.record; var field = e.field, value = e.value;
grid.updateRow(record,{});
changeCheckboxState('2')
} function changeCheckboxState(lx){ if(lx=='1'){//禁用
$("input[type=checkbox]").each(function(){
$(this).attr("disabled",true);
});
}else if(lx=='2'){//启用
$("input[type=checkbox]").each(function(){
$(this).attr("disabled",false);
});
}
}
</script>