jQgrid - 在网格最后移动第一列 column(td) 后出现问题

jQgrid - Getting issue after moving first column column(td) at last of grid

我对 jQgrid 最后移动第一列(multiselect 复选框)有疑问,如此answer by oleg

问题: 在 select 之后删除网格列为 mis-aligned 和 header 列的行。

那么,我该如何管理呢??

The old answer, which you reference is very old (4.5 years ago). There are now two main forks of jqGrid: free jqGrid, which I develop and provide under the same MIT / GNU GPLv2 licenses like it was before and the commercial Guriddo jqGrid JS available under the prices。我在免费的 jqGrid 中实现了许多新功能。

重写了多选功能的实现。 jqGrid 的旧代码包含许多地方,多选列 "cb" 必须存在并且位于网格的开头。例如,免费的 jqGrid 有新的选项 multiselectPosition: "left"。您可以使用 multiselectPosition: "right" 更改多选列的位置。另外可以使用 remapColumnsByName(参见 ) or remapColumns to change the position of "cb" column (the column with multiselect checkboxes) and place it on any place in the grid. The main code of jqGrid is not depend on the position of the column and any place of the column is supported. One can specify any other value of multiselectPosition, for example, multiselectPosition: "none" (see the feature list,在免费的 jqGrid 4.9.0 中实现)。它将创建具有多选功能的网格 完全没有任何多选列

还有很多其他选项,比如multiPageSelection: true,也很实用(见the demo from the answer)。此外,可以使用 hasMultiselectCheckBox 回调来指定 multiselect 复选框应仅在网格的某些特定行中创建,而不是默认在所有行中创建复选框。