Hi Paramvir,
Please find the attached Code,
$(function () {
var columns = [
{ title: "Order ID", dataIndx: "OrderID" },
{ title: "Customer Name", dataIndx: "CustomerName" },
{ title: "Product Name", dataIndx: "ProductName" },
{ title: "Unit Price", dataIndx: "UnitPrice", dataType: 'float', format: '$#,###.00' },
{ title: "Quantity", dataIndx: "Quantity", dataType: 'integer' },
{ title: "Order Date", dataIndx: "OrderDate" },
{ title: "Required Date", dataIndx: "RequiredDate" },
{ title: "Shipped Date", dataIndx: "ShippedDate" },
{ title: "ShipCountry", dataIndx: "ShipCountry" },
{ title: "Freight", align: "right", dataIndx: "Freight" },
{ title: "Shipping Name", dataIndx: "ShipName" },
{ title: "Shipping Address", dataIndx: "ShipAddress" },
{ title: "Shipping City", dataIndx: "ShipCity" },
{ title: "Shipping Region", dataIndx: "ShipRegion" },
{ title: "Shipping Postal Code", dataIndx: "ShipPostalCode", minWidth: 150 },
{ title: "Order ID", dataIndx: "OrderID" },
{ title: "Customer Name", dataIndx: "CustomerName" },
{ title: "Product Name", dataIndx: "ProductName" },
{ title: "Unit Price", dataIndx: "UnitPrice", dataType: 'float', format: '$#,###.00' },
{ title: "Quantity", dataIndx: "Quantity", dataType: 'integer' },
{ title: "Order Date", dataIndx: "OrderDate" },
{ title: "Required Date", dataIndx: "RequiredDate" },
{ title: "Shipped Date", dataIndx: "ShippedDate" },
{ title: "ShipCountry", dataIndx: "ShipCountry" },
{ title: "Freight", align: "right", dataIndx: "Freight" },
{ title: "Shipping Name", dataIndx: "ShipName" },
{ title: "Shipping Address", dataIndx: "ShipAddress" },
{ title: "Shipping City", dataIndx: "ShipCity" },
{ title: "Shipping Region", dataIndx: "ShipRegion" },
{ title: "Shipping Postal Code", dataIndx: "ShipPostalCode", minWidth: 150 },
];
var dataModel = {
location: "remote",
dataType: "JSON",
method: "GET",
url: "/Content/invoice.json"
}
$("#dndgrid").pqGrid({
dataModel: dataModel,
pageModel: { type: 'local', rPP: 20, rPPOptions: [1, 10, 20, 30, 40, 50, 100] },
colModel: columns,
title: "Shipping Orders" ,
flex:{on:true},
animModel: { on: true, duration: 400 },
//resizable: true,
virtualX: true, virtualY: true,
scroll: function( event, ui ) {this.flex()}
});
});
Copy and paste the above code in the
https://paramquery.com/pro/demos/dnd_grid example
Then, Edit and Run the code.
Then simply scroll the grid horizontally. The case will reproduce.