- 注册时间
- 2014-7-15
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 25
- 精华
- 0
- 帖子
- 6
|
按照版主的方法实现了,谢谢
function OnCellCommitEdit(e) {
var updataId = "";
var updataValue = "";
var grid = e.sender;
var record = e.record;
var field = e.field;
var value = e.value;
if (field == "dept_id") {
$.ajax({
type: "Post",
url: "../data/AjaxService.aspx/AjaxGetPositionsByDeptId",
data: "{'id':'" + value + "'}",
contentType: "application/json;charset=utf-8",
dataType: "json",
success: function (data) {
updataId = data.d["id"];
updataValue = data.d["name"];
$("#updata").text(updataId);
grid.updateRow(record, { position: updataValue, position_name: updataValue });
}
})
}
} |
|