jqgrid Posting name:value pair when deleting row?

Posted by user837168 on Stack Overflow See other posts from Stack Overflow or by user837168
Published on 2012-07-03T21:12:59Z Indexed on 2012/07/03 21:15 UTC
Read the original article Hit count: 215

Filed under:
|
|

I want to send some name:value pair from the row selected along with del command. from below script I want to send the "polpono" value to my php script when del command is issued. any help will be highly appreciated.

$(document).ready(function(){ 

$("#datagrid").jqGrid({ url:'actionpo.php?vid=polpogridjq', datatype: 'xml', mtype: 'GET', colNames:['List#','PO#', 'Item Code','Item Detail','Qty','Price','Tax'], colModel :[ {name:'polistno', width:100,editable:true,editable:true,key:true}, {name:'polpono',index:'polpono', width:100,editable:true}, {name:'politemcode',index:'politemcode', width:100, align:'right',sortable:true,editable:true}, {name:'politemname', width:300, align:'left',sortable:false,editable:true}, {name:'politemqty',width:50, align:'right',sortable:false,editable:true}, {name:'politemvalue', width:80,align:'left',sortable:false,editable:true}, {name:'politemtax', width:50, align:'right',editable:true} ],

pager: $('#pager'),
rowNum:10,
rowList:[10,20,30],
sortname: 'polpono',
sortorder: 'desc',
shrinkToFit: false,
rownumbers: false,
multiselect: false,
viewRecords: false,
clearAfterAdd:true,
caption: 'Itemised Quantity',
editurl: "actionpo.php?vid=gridformcall",

}).navGrid('#pager', { edit: true, add: true, del: true ,search:false, refresh:true},{

       }



  });

});

© Stack Overflow or respective owner

Related posts about post

Related posts about jqgrid