Код: Выделить всё
jQuery("#GridSelectedProducts").jqGrid({
height: '100%',
width: '100%',
autowidth: true,
regional: 'en',
/*data:{},*/
datatype: "local",
colNames: ['id', 'productid', 'opportunityproductid', 'Product', 'Product-Title', 'Unit', 'defaultunit', 'uomid', 'Override-Product', 'Price', 'Qty', 'Volumes-Discount', 'Amount', 'Discount-Type', 'Discount', 'Total-After-Discount', 'Cost-Amount', 'Margin', 'Percentage', 'Revenue-Stream', 'Licensing'],
colModel: SelectedProductsModel,
mtype: 'Post',
id: "pw_id",
viewrecords: true,
rowList: [5, 10, 20],
pager: '#pager10_d',
sortable: true,
sortname: 'id',
sortorder: "asc",
multiselect: false,
forceFit: true,
cellEdit: true,
hidegrid: false,
cellsubmit: 'clientArray',
afterSaveCell: Calcul,
loadComplete: $("a").click(),
caption: "Selected Products"
}).navGrid('#pager10_d', {
add: false,
edit: false,
del: true,
refresh: false // NPI : remove refresh button because it empty lines when used on newed added row configured !
});
Подробнее здесь: https://stackoverflow.com/questions/786 ... -in-jqgrid