我正在使用 jqGrid 4.0.0,beforeProcessing 永远不会为每个 postBack 触发,它根本没有被触发,请协助!
$('#jqgInventory').jqGrid({
autowidth: true,
caption: 'Inventory',
datatype:'json',
forceFit: true,
gridview: true,
height: 500,
hidegrid: false,
ignoreCase: true,
loadui: 'disable',
pager:'#pager',
mtype: 'post',
rowNum:25,
shrinkToFit: true,
url:'/MCI/Inventory/Inventory/GetIndexGridData',
viewrecords: true,
postData: { modelView: JSON.stringify(model), __RequestVerificationToken: $('[name="__RequestVerificationToken"]').val() },
beforeProcessing: function(data, status,xhr){beforeProcessing(data,status,xhr)},
beforeRequest: function() {$('#gridScript').block();},
beforeSelectRow: function(rowid, e) {return false;},
gridComplete: function() {$('#lblVehicleCount').html($('#jqgInventory').getGridParam('records'));$('#gridScript').unblock();Inventory.modifyGridCellClick();},
loadComplete: function(xhr) {GetGridData(xhr);},