40 lines
No EOL
1.1 KiB
Markdown
40 lines
No EOL
1.1 KiB
Markdown
Setup
|
|
- use cdn
|
|
include link and script tags with their links
|
|
- with syncfusion
|
|
https://ej2.syncfusion.com/aspnetcore/documentation/getting-started/vscode : important
|
|
https://help.syncfusion.com/aspnet-core/gettingstarted/getting-started-2-0
|
|
https://ej2.syncfusion.com/aspnetcore/documentation/nuget-packages
|
|
to be downloaded from here
|
|
https://www.nuget.org/packages/Syncfusion.EJ2.AspNet.Core/
|
|
- licensing
|
|
- to validate it with license, 2 ways
|
|
1. entry point file
|
|
```cs
|
|
using Syncfusion.Licensing;
|
|
|
|
public class Startup
|
|
{
|
|
public void ConfigureServices(IServiceCollection services)
|
|
{
|
|
// Register the Syncfusion license
|
|
SyncfusionLicenseProvider.RegisterLicense("YOUR_LICENSE_KEY"); // Replace with your actual license key
|
|
|
|
// Other service registrations
|
|
services.AddControllersWithViews();
|
|
}
|
|
|
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
|
{
|
|
// Existing code for middleware configuration...
|
|
}
|
|
}
|
|
```
|
|
|
|
2. in razor pages
|
|
```cshtml
|
|
@using Syncfusion.Licensing
|
|
@{
|
|
SyncfusionLicenseProvider.RegisterLicense("YOUR_LICENSE_KEY"); // Replace with your actual license key
|
|
}
|
|
``` |