jqgrid - 我可以设置列的最小宽度吗

jqgrid - Can I set minimum width of a column

我们可以设置 re-sizable 网格中列的最小宽度吗? 好的,现在你会为什么不让它 resizable=false。 Ans:如果有一个 header "Customer Name" 是 WIDTH=110,但有时名称太大,所以我应该只能调整大小以增加该列的宽度。并且它不应该允许最小化宽度。

可以拿http://www.ok-soft-gmbh.com/jqGrid/OK/FontAwesome4Large-borderlessOnHover2-frozen.htm

举例

您使用 free jqGrid fork, which allows such settings. The corresponding setting is introduced for auto-resizing functionality (see the wiki article),但它也将应用于用户手动调整列的大小。你只需要在列中添加autoResizing 属性,它应该是对象并指定对象的minColWidth 属性。例如

autoResizing: { minColWidth: 80 }

将最小宽度限制为 80 像素。