【问题标题】:ag-Grid: toolPanel is only available in ag-Grid Enterpriseag-Grid:toolPanel 仅在 ag-Grid Enterprise 中可用
【发布时间】:2019-07-16 21:31:58
【问题描述】:

我正在使用 Angular2 版本。当我尝试升级到 ag-grid-enterprise 版本时出现以下错误。写在下面用于设置许可证密钥的代码。

从“ag-grid-enterprise”导入 { LicenseManager }; LicenseManager.setLicenseKey(xxx);

但是当我尝试使用“ToolPanel”(企业)功能时,我遇到了以下错误,

'ag-Grid:toolPanel 仅在 ag-Grid Enterprise 中可用。

在这方面需要您的帮助,我已经搜索了整个网络并尝试了重新启动系统和论坛中建议的其他措施,但每次我都收到上述错误。

感谢您对此的帮助。

【问题讨论】:

  • 您是否导入了ag grid enterprise?导入“ag-grid-enterprise”;

标签: ag-grid ag-grid-angular


【解决方案1】:

对于 Enterprise ag-grid,请按照以下步骤操作

  1. npm install --save ag-grid-enterprise ag-grid-angular

  2. 添加 import { AgGridModule } from 'ag-grid-angular';进口 'ag-grid-enterprise';到 app.module.ts

【讨论】:

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