我不知道是否有任何 API 选项。
一个小技巧是从列中删除绑定。以下代码可用于删除绑定,因为 SI-column 始终是第一列:
jQuery('.hDivBox th:first').unbind();
Run Code Online (Sandbox Code Playgroud)
因此,您可以将其添加到 onSuccess 回调中,如下所示。
jQuery('#divId').flexigrid({
onSuccess: function() {
jQuery('.hDivBox th:first').unbind();
},
. . .
});
Run Code Online (Sandbox Code Playgroud)
更新:有一个 API 选项colMove。使其为假以禁用它。上述解决方案也将禁用列排序。见https://github.com/paulopmx/Flexigrid/blob/master/js/flexigrid.js#L135