jqgrid取消列排序沒有全局屬性、因此只能在colModel每個列進行設置、每個col加上sortable:false即可實現該效果、示例代碼如下:
$("#gridList").dataGrid({ url: "/DataManage/WaterStatistic/GetGridJson" , postData: { stations: $("#sel_station").selectpicker("val") , time: $("#time").val() } , height: $(window).height() - 185 , colModel: [{ label: '月份', name: "月份", align: 'center', sortable: false } , { label: '站點1', name: '站點1', align: 'center', sortable: false }] , pager: "#gridPager" , viewrecords: true , loadComplete: function (data) { resultData = data; wfr.resizeWindow(); } });