jqgrid取消列排序
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();
}
});

浙公网安备 33010602011771号