HelpBot Assistant

How can I help you?

License key registration in EJ2 JavaScript Licensing control

6 Feb 20261 minute to read

The Syncfusion® license key must be registered in projects that reference Syncfusion® JavaScript (ES5) packages. The generated license key is a string that must be registered after including any Syncfusion® JavaScript (ES5) script reference.

Note: Syncfusion® license validation occurs offline during application execution and does not require an internet connection. Applications registered with a valid Syncfusion® license key can be deployed on systems without internet access.

The following code is used to register the license.

Javascript es5

Register the license key by using ‘registerLicense’ method after the Syncfusion® JavaScript script file reference as below.

Note: As we have mandated License registration for the Syncfusion® JavaScript components, we realize there is a possibility to view the registered Syncfusion® License key from your application by others. We acknowledge this is taking place in the JavaScript platform, as we have minimal scope for hiding the License key and we also recommend not to advertise it.

// Registering Syncfusion license key
ej.base.registerLicense('Replace your generated license key here');

Note: Only from 2022 Vol 1 v20.1.0.47, license key registration required for Essential® JavaScript 2 products.

See Also