【问题标题】:Ag Grid: How do I know which row group was removed when a user removes one?Ag Grid:当用户删除一个行组时,我如何知道哪个行组被删除?
【发布时间】:2019-11-22 09:34:45
【问题描述】:

在使用带有 Angular 6 的 Ag Grid 时,当我侦听在“A row group column was added or removed”时触发的 columnRowGroupChanged 事件时,如果用户删除了行组,我如何确定删除了哪个行组?

【问题讨论】:

    标签: angular6 grouping ag-grid


    【解决方案1】:

    您需要使用 columnApi.getRowGroupColumns() 手动比较:

      // gets all column definitions that are grouped
      let groupedColumns = this.gridOptions.columnApi.getRowGroupColumns();
    

    columnRowGroupChanged 事件之前/之后。

    【讨论】:

      猜你喜欢
      • 2017-05-20
      • 2017-03-14
      • 1970-01-01
      • 2016-12-27
      • 2020-12-08
      • 2016-11-06
      • 2016-11-25
      • 1970-01-01
      • 2019-10-12
      相关资源
      最近更新 更多