我想删除网格中的一行,但网格总是只发布id和oper,我还想发布额外的数据。
我的 jqgrid 是这样的:
jQuery("#editgrid").jqGrid({
url:'autoJSON.php',
datatype: "xml",
colNames:['RowID','Asigurator','Cilindree','Persoana', 'Perioada', 'Pret'],
colModel:[
{name:'rowID',index:'rowID', width:60, editable:true},
{name:'idAsigurator',index:'idAsigurator', width:100, editable:true,editoptions:{size:20}},
{name:'cilindree',index:'cilindree', width:90, editable:true,editoptions:{size:20}},
{name:'persoana',index:'persoana', width:300,editable:true,edittype:"select",editoptions:{value:"Persoana juridica:Persoana juridica;Pensionar:Pensionar;Persoana fizica:Persoana fizica"}},
{name:'perioada',index:'perioada', width:120, align:"right",edittype:"select",editable:true,editoptions:{value:"12 luni:12 luni;6 luni:6 luni"}},
{name:'pret',index:'pret', width:80, align:"right",editable:true,editoptions:{size:20}}
],
width:900,
height:600,
pager: '#pagered',
sortname: 'rowID',
viewrecords: true,
sortorder: "desc",
caption:"Autoturisme",
editurl:"autoPOST.php",
});
jQuery("#editgrid").jqGrid('navGrid',"#pagered",{edit:true,add:true,del:true});
我应该怎么做才能在 autoPOST.php rowID 中访问也作为 post 变量。
谢谢
当试图删除我看到的唯一帖子变量是 oper='del' 和 id 返回我要删除的所选行的 id