【问题标题】:Is it possible to set ag-grid column as fixed so that it could not be moved?是否可以将 ag-grid 列设置为固定使其无法移动?
【发布时间】:2021-06-09 11:37:09
【问题描述】:

是否可以/如何修复分组列使其无法移动?

https://www.ag-grid.com/javascript-grid/grouping/

【问题讨论】:

    标签: grouping ag-grid


    【解决方案1】:

    将您的列固定在左侧并将lockPinned 设置为true,两者都在autoGroupColumnDef 中:

    autoGroupColumnDef: {
        pinned: 'left',
        lockPinned: true,
      },
    

    Demo.

    【讨论】:

    • 嗨@Agnes,如果这个或任何答案解决了您的问题,请点击复选标记考虑accepting it。这向更广泛的社区表明您已经找到了解决方案,并为回答者和您自己提供了一些声誉。没有义务这样做。
    猜你喜欢
    • 2018-11-19
    • 2018-07-05
    • 2020-10-22
    • 2021-09-21
    • 2018-05-25
    • 2017-09-25
    • 2019-03-22
    • 1970-01-01
    • 2022-08-14
    相关资源
    最近更新 更多