我似乎找不到在editurl之后调用的函数:“url”已经完成。
我有:
colModel: [
{ name: 'Email', index: 'Email', editable: true },
{ name: 'ReferenceEmail', index: 'ReferenceEmail',hidden: true , editable: true, editrules: {edithidden:true} },
{ name: 'Title', index: 'Title',editable: true, edittype: "select", editoptions: { value: "Mr:Mr;Mrs:Mrs;Ms:Ms;Doctor:Doctor;Sir:Sir"} },
{ name: 'Forename', index: 'Forename', editable: true },
{ name: 'Surname', index: 'Surname', editable: true },
{ name: 'Study_Manager', index: 'Study_Manager',editable: true, edittype: "select", editoptions: { value: "True:True;False:False"} }
],
editurl: "/StudyManager/UserTable.aspx"
一旦编辑从帖子返回到服务器,我需要设置ReferenceEmail =电子邮件。
答案 0 :(得分:2)
jqGrid: Why aren't the events that I defined for a grid edit firing?
在此参考页面上,您有 afterComplete 事件,我认为您应该抓住该事件:
http://www.secondpersonplural.ca/jqgriddocs/_2eb0gp5ym.htm
欢呼声
答案 1 :(得分:1)
我是个白痴:
$("#UserGrid").jqGrid('editRow', id, true, oneditfunc, reload);
然后设置
Function reload(rowid,result)
{
}