我需要对这3个字段进行特殊控制:在提交时我应该验证用户是否只编辑了其中一个(他必须只选择' element1'或' element2或&# 39;元素3&#39)
。[...]
{name:'element1', editable:true,hidden: true ,editrules: {edithidden:true,number:true}, editoptions:{size:5}, reloadAfterSubmit: true,index:'element1',width:40, reloadAfterSubmit: true,closeAfterAdd:true,reloadAfterSubmit:true},
{name:'element2', editable:true,hidden: true ,editrules: {edithidden:true,number:true} , editoptions:{size:5},reloadAfterSubmit: true,index:'element2',width:40, reloadAfterSubmit: true,closeAfterAdd:true,reloadAfterSubmit:true}
{name:'element3', editable:true,hidden: true ,editrules: {edithidden:true,number:true} , editoptions:{size:5},reloadAfterSubmit: true,index:'element3',width:40, reloadAfterSubmit: true,closeAfterAdd:true,reloadAfterSubmit:true}
[...]
也许' beforeSubmit'在添加/编辑选项可以帮助我,但我不能使它工作。 提前致谢