License key registration in EJ2 JavaScript Licensing control

1 Jul 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.

Register Multiple License Keys

If you need to register multiple Syncfusion® license keys in your application, you can do so by separating each key with a semicolon. This is useful when your application uses multiple Syncfusion® products or editions.

Format: key1;key2;key3

Example:

ej.base.registerLicense('license-key-1-here;license-key-2-here');

When registering multiple keys, ensure there are no spaces before or after the semicolon separator.

See Also