Ag grid 如何在ag网格透视模式下禁用聚合?

Ag grid 如何在ag网格透视模式下禁用聚合?,ag-grid,Ag Grid,这些是grid提供的选项,我想隐藏聚合部分,因为我没有任何要聚合的列 设置gridOptions.toolPanelSuppressValues:true 您可以阅读有关抑制toolpanel其他部分的更多信息(查找抑制示例)设置网格选项。toolPanelSuppressValues:true 您可以阅读更多关于抑制toolpanel的其他部分的信息(查找抑制示例)在ag grid 23中,您必须在GridOptions属性的侧栏选项中执行此操作 toolPanels: [ {

这些是grid提供的选项,我想隐藏聚合部分,因为我没有任何要聚合的列


设置
gridOptions.toolPanelSuppressValues:true


您可以阅读有关抑制toolpanel其他部分的更多信息(查找抑制示例)

设置
网格选项。toolPanelSuppressValues:true


您可以阅读更多关于抑制toolpanel的其他部分的信息(查找抑制示例)

在ag grid 23中,您必须在
GridOptions
属性的
侧栏
选项中执行此操作

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

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

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

对于行组使用此->toolPanelSuppressRowGroups:true对于行组使用此->toolPanelSuppressRowGroups:true