Your AG Grid license key should have been emailed to you by our sales team following your purchase. You'll need to set the AG Grid license key in your code to use AG Grid Enterprise functionality, or you'll be getting a watermark over AG Grid, and errors in the developer console.
AG Grid License Key Format
Your ag-Grid license key looks like either of the two license keys (this is just a format difference):
Setting the license key
Please follow the steps on how to set the license key according to the framework you're using here:
You can also see complete examples here:
The AG Grid license key needs to be entered into the setLicenseKey API method as-is without any additional spaces or other characters.
Here's an example of this using the sample license key above. Note the entire license key string is used in this method without any new lines, or other modifications:
When you set the ag-Grid license key correctly as described above, that will remove the watermark displayed over ag-Grid and no console messages will be displayed.
AG Grid License key Errors
If the license key isn't set correctly and you're getting the watermark, please open the developer console and take a look at the error messages. Please read below how to resolve each of these.
How to resolve error "License Key not Found"
If you're setting the ag-Grid license key but you're getting an console error message saying License Key Not Found, the LicenseManager isn't loaded correctly.
In order to resolve this, fine the relevant sample in the link below based on your framework and use the same approach in your codebase:
How to resolve error "Invalid License key"
If you're setting your ag-Grid license key but getting an Invalid license key error message in the browser console, please ensure you're entering the AG Grid license key exactly as emailed to you by our sales team, without adding any space or new line characters.
You can validate your AG Grid license key using the sample here:
If your license key still doesn't validate correctly on this validator and you're getting the same error, this might be due to special characters or accents/umlaut characters in the license key.
If your ag-Grid license key contains special characters such as:
*/ it may not validate correctly. If that's the case, please contact our sales team at firstname.lastname@example.org stating this, and we will issue a new AG Grid license key for you.
Accents and Umlaut Characters
If you are using version 23, AG Grid license keys with accented characters or umlauts will also not validate correctly. This issue will be fixed in our future versions, but in the meantime please contact our sales team at email@example.com stating this for a new license key to be generated.