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();
                }
                });

 

相关文章:

  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
相关资源
相似解决方案