$("#order_grid").ejGrid({
dataSource: ej.DataManager({ url: "GetAllocation?param_ot=" + Order_Type + "¶m_pc=" + itemcode, batchUrl: "UpdateAllocationHSIP", adaptor: "UrlAdaptor" }),
allowGrouping: false,
editSettings: { allowDeleting: true, allowEditing: true, allowAdding: true, editMode: 'batch' },
allowScrolling: true,
scrollSettings: { width: "100%", height: "auto" },
allowPaging: false,
enableAltRow: true,
showColumnChooser: true,
allowSorting: false,
allowTextWrap: true,
textWrapSettings: { wrapMode: "both" },
allowResizeToFit: true,
showStackedHeader: true,
isResponsive: true,
enableResponsiveRow: true,
allowScrolling: true,
allowFiltering: true,
filterSettings: {
filterType: "excel"
},
create: "create",
cellSave: "cellSave",
actionComplete: "successSave",
actionFailure: "failure",
columns: [
{ field: "OrderNumber", headerText: "Order No.", visible: true, allowEditing: false, isPrimaryKey: true, width: 160 },
{ field: "Facility", headerText: "Facility", visible: true, allowEditing: false, width: 100 },
{ field: "DatePrepared", headerText: "Date Prepared", visible: true, allowEditing: false, width: 90 , format: "{0:dd/MMM/yyyy}" },
{ field: "DrugCode", headerText: "Product Code", allowEditing: false, width: 70, isPrimaryKey: true },
Hello there,
Above is my code for a JS grid and i want to disable sorting automatically on that grid, i have tried using "allowSorting: false" but its not working it keeps on sorting the records on the grid in ascending order,