Skip to content

Example - Ag-grid License Key

const eGridDiv = document.querySelector('#myGrid'); new agGrid.Grid(eGridDiv, gridOptions);

// 1. Import the LicenseManager import LicenseManager from 'ag-grid-enterprise';

import LicenseManager from 'ag-grid-enterprise'; ag-grid license key example

</script> </body> </html>

@Component( selector: 'app-root', template: <ag-grid-angular style="width: 100%; height: 500px;" class="ag-theme-alpine" [rowData]="rowData" [columnDefs]="columnDefs" [pivotMode]="true"> </ag-grid-angular> ) export class AppComponent columnDefs = [ field: 'make' , field: 'model' , field: 'price', aggFunc: 'sum' ]; rowData = [ make: 'Toyota', model: 'Celica', price: 35000 ]; const eGridDiv = document

:

// >>> AG Grid License Key Example for Vue <<< LicenseManager.setLicenseKey('MzAwMDAwMDAwMDAwMA0AQWcgR3JpZCBFbnRlcnByaXNlAEV4YW1wbGUgTGljZW5zZQ0B'); AG Grid acknowledges this; the key is not

// Set license key once in your app entry point LicenseManager.setLicenseKey( 'your_license_key_here_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' );

Yes. Since AG Grid is a client-side library, the license key will technically be visible in your JavaScript bundles. AG Grid acknowledges this; the key is not meant to be a secret "password," but rather a mechanism to identify your organization and entitlement to support and updates.