【问题标题】:ag-Grid: enableRowGroup is only valid in ag-Grid-Enterprise, your column definition should not have enableRowGroupag-Grid: enableRowGroup 只在 ag-Grid-Enterprise 中有效,你的列定义不应该有 enableRowGroup
【发布时间】:2021-02-09 07:46:30
【问题描述】:

我正在使用 ag-grid 编写一个有角度的项目,我想尝试行分组。以下是来自 ag-grid 网站的测试代码。但是网格显示常规网格并在调试窗口中收到以下内容。

ag-Grid:enableRowGroup 仅在 ag-Grid-Enterprise 中有效,您的列定义不应有 enableRowGroup

任何想法,如何使用 ag-grid-enterprise 的试用版?

示例代码:https://www.ag-grid.com/javascript-grid-grouping/

【问题讨论】:

    标签: ag-grid


    【解决方案1】:

    在 app.modules.ts 中添加以下内容可解决问题 从'@ag-grid-community/angular'导入{ AgGridModule };

    【讨论】:

      【解决方案2】:

      要使用 ag-grid-enterprise 功能,首先您需要安装以下 npm 包:

      npm install --save ag-grid-enterprise
      

      然后,将导入添加到 app.module.ts:

      import 'ag-grid-enterprise';
      

      如果一切正常,您应该会在控制台中看到一条消息,告诉您没有企业许可证密钥。

      【讨论】:

        猜你喜欢
        • 2018-04-02
        • 2020-08-19
        • 2020-03-31
        • 2019-07-16
        • 1970-01-01
        • 2020-03-07
        • 2018-06-25
        • 2020-04-06
        • 2021-02-09
        相关资源
        最近更新 更多