How to upgrade Syncfusion® Blazor Components to 18.1.0.36 version
22 Oct 20254 minutes to read
This guide explains the one-time migration required when upgrading from Syncfusion Blazor packages to version 18.1.0.36 and later.
NuGet changes
In previous versions, the primary Syncfusion Blazor NuGet package name was Syncfusion.EJ2.Blazor. Starting with version 18.1.0.36, the package name is Syncfusion.Blazor. Other Blazor packages follow the same naming change.
The following table shows example package ID changes:
| Before 18.1.0.36 version | From 18.1.0.36 version |
|---|---|
| Syncfusion.EJ2.Blazor | Syncfusion.Blazor |
| Syncfusion.EJ2.WordEditor.Blazor | Syncfusion.WordEditor.Blazor |
| Syncfusion.EJ2.Blazor.PdfViewerServer.Windows | Syncfusion.Blazor.PdfViewerServer.Windows |
| Syncfusion.EJ2.Blazor.PdfViewerServer.Linux | Syncfusion.Blazor.PdfViewerServer.Linux |
| Syncfusion.EJ2.Blazor.PdfViewerServer.OSX | Syncfusion.Blazor.PdfViewerServer.OSX |
Namespace changes
Earlier versions used the root namespace Syncfusion.EJ2.Blazor followed by component package names such as Buttons, Charts, Grids, and Inputs. From version 18.1.0.36, the root namespace is Syncfusion.Blazor followed by the package name. The following table provides examples:
| Before 18.1.0.36 version | From 18.1.0.36 version |
|---|---|
| Syncfusion.EJ2.Blazor | Syncfusion.Blazor |
| Syncfusion.EJ2.Blazor.Buttons | Syncfusion.Blazor.Buttons |
| Syncfusion.EJ2.Blazor.Calendars | Syncfusion.Blazor.Calendars |
| Syncfusion.EJ2.Blazor.Charts | Syncfusion.Blazor.Charts |
| Syncfusion.EJ2.Blazor.Grids | Syncfusion.Blazor.Grids |
Component name changes
In earlier versions, component names were prefixed with Ejs (for example, EjsGrid, EjsChart). Starting with 18.1.0.36, the prefix is Sf (for example, SfGrid, SfChart). See the following examples:
| Before v18.1.0.36 | From v18.1.0.36 |
|
|
|
|
Resource changes
In earlier versions, the application manually referenced the ej2.min.js and ejs-interop.min.js scripts. Starting with 18.1.0.36, scripts are loaded automatically via static web assets from the NuGet package for the components used on the page. Styles are also provided as static web assets to reference in the application.
| Before v18.1.0.36 | From v18.1.0.36 |
|
|
If needed, resources can be loaded from the Custom Resource Generator (CRG) by disabling default script loading from static web assets using options passed to the AddSyncfusionBlazor service in the ~/Program.cs file.
DataManager changes
In previous versions, Query initialization used new ej.data.Query(). From version 18.1.0.36, it uses new sf.data.Query(). See the following examples:
| Before v18.1.0.36 | From v18.1.0.36 |
|
|
NOTE
To downgrade a project from version 18.1.0.36, reverse the steps outlined above.