グリッド内の行を削除したいのですが、グリッドは常に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.phprowIDにpost変数としてもアクセスするにはどうすればよいですか。
ありがとう
私が見る唯一の投稿変数を削除しようとすると、oper ='del'と、削除したい選択した行のIDを返すidが表示されます