Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watermark is not display even if I used ag-grid-enterprise #4899

Closed
vikanirav opened this issue Feb 1, 2022 · 2 comments
Closed

Watermark is not display even if I used ag-grid-enterprise #4899

vikanirav opened this issue Feb 1, 2022 · 2 comments

Comments

@vikanirav
Copy link

Hello,

I used following ag grid enterprise feature and set empty license key. But as per ag-grid documentation, it is not showing watermark in grid for a few seconds. License validation is display in console only.

  • ClientSideRowModelModule
  • MenuModule
  • ExcelExportModule

Can anyone help here? why it is not showing watermark with ag grid enterprise feature.

Code:
`import React, { useState } from "react";
import { AgGridReact } from "@ag-grid-community/react";

import { ModuleRegistry } from "@ag-grid-community/core";
import { ClientSideRowModelModule } from "@ag-grid-community/client-side-row-model";
import { MenuModule } from "@ag-grid-enterprise/menu";
import { ExcelExportModule } from "@ag-grid-enterprise/excel-export";

import {LicenseManager} from '@ag-grid-enterprise/core';

import "@ag-grid-community/core/dist/styles/ag-grid.css";
import "@ag-grid-community/core/dist/styles/ag-theme-alpine.css";

ModuleRegistry.registerModules([
ClientSideRowModelModule,
MenuModule,
ExcelExportModule,
]);

LicenseManager.setLicenseKey('');

function App() {
const [columnDefs, setColumnDefs] = useState([
{ headerName: "Make", field: "make" },
{ headerName: "Model", field: "model" },
{ headerName: "Price", field: "price" },
]);

const [rowData, setRowData] = useState([
{ make: "Toyota", model: "Celica", price: 35000 },
{ make: "Ford", model: "Mondeo", price: 32000 },
{ make: "Porsche", model: "Boxter", price: 72000 },
{ make: "Porsche", model: "Boxter", price: 72000 },
{ make: "Porsche", model: "Boxter", price: 72000 },
{ make: "Porsche", model: "Boxter", price: 72000 },
{ make: "Porsche", model: "Boxter", price: 72000 },
{ make: "Porsche", model: "Boxter", price: 72000 },
]);

return (
<div className="ag-theme-alpine" style={{ height: 400, width: 600 }}>
<AgGridReact
columnDefs={columnDefs}
rowData={rowData}
onGridReady={(params) => params.api.sizeColumnsToFit()}
>

);
}

export default App;`

@gportela85
Copy link
Member

Are you testing this on localhost? The license watermark is not displayed on localhost as it is treated as dev environment.

@vikanirav
Copy link
Author

Thank you! @gportela85. I am testing on localhost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants