var dataModel = { location: "remote", dataType: "json", method: "POST", contentType: "application/json; charset=UTF-8", url: '@Url.RouteUrl("GetChangeOrders")', getData: function (dataJson) { return { data: dataJson }; } }; var obj = { collapsible: false, colModel: colModel, dataModel: dataModel, editable: false, filterModel: { on: true, mode: "AND", header: true }, flexHeight: true, numberCell: { show: false }, roundCorners: true, scrollModel: [lastColumn = "None"], sortDir: ["up"], sortIndx: ["ID"], sorting: "local", stripeRows: true, title: "IT Change Orders", width: $(window).width() - 10, wrap: false };
error: function( ){ var oldMsg = $grid.pqGrid( "option", "strNoRows" ); $grid.pqGrid( "option", "strNoRows", "custom message"); $grid.pqGrid( "refresh" ); //restore the normal message. $grid.pqGrid( "option", "strNoRows", oldMsg); },