【问题标题】:How can i disable aggregation in ag-grid pivot mode?如何在 ag-grid 数据透视模式下禁用聚合?
【发布时间】:2017-10-23 15:38:44
【问题描述】:

这些是网格给出的选项,我想隐藏聚合部分,因为我没有任何要聚合的列。

【问题讨论】:

    标签: ag-grid


    【解决方案1】:

    设置gridOptions.toolPanelSuppressValues: true

    您可以阅读有关抑制工具面板其他部分的更多信息here(查找抑制示例

    【讨论】:

    • 对于行组使用这个 -> toolPanelSuppressRowGroups: true
    【解决方案2】:

    在 ag 网格 23 中,您必须在 GridOptions 属性的 sideBar 选项中执行此操作。

    toolPanels: [
          {
            id: 'id',
            labelDefault: 'labelDefault',
            labelKey: 'labelKey',
            iconKey: 'iconKey',
            toolPanel: 'agColumnsToolPanel',
            toolPanelParams: {
              suppressPivotMode: true, - here
              suppressValues: true,
            },
          },
        ],
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-28
      • 2019-09-19
      • 2021-08-30
      • 2019-02-10
      • 1970-01-01
      • 2021-08-18
      • 2021-04-05
      • 2020-08-19
      相关资源
      最近更新 更多