You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/common/adding-script-references.md
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,8 @@ N> The javascript interop files needs to be added to support the features that c
17
17
18
18
You can refer the Syncfusion<supstyle="font-size:70%">®</sup> Blazor scripts through the CDN resources.
19
19
20
-
* For **Blazor Web App**, reference scripts in `~/Components/App.razor` file.
21
-
* For **Blazor WASM App**, reference scripts in `~/wwwroot/index.html` file.
22
-
* For **Blazor Server App**, reference scripts in `~/Pages/_Layout.cshtml` file for `.NET 6` project and in `~/Pages/_Host.cshtml` file for `.NET 7` project.
20
+
* For **.NET 8 and .NET 9** Blazor Web Apps using any render mode (Server, WebAssembly, or Auto), reference scripts in `~/Components/App.razor` file.
21
+
* For **Blazor WASM Standalone App**, reference scripts in `~/wwwroot/index.html` file.
23
22
24
23
Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available in CDN for each version. Make sure that the version in the URLs matches the version of the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Package you are using .
25
24
@@ -448,7 +447,7 @@ The following table lists components and its script reference.
448
447
449
448
## Custom Resource Generator
450
449
451
-
The Syncfusion<supstyle="font-size:70%">®</sup> Blazor provides an option to generate a component's interop scripts using the [Custom Resource Generator](https://blazor.syncfusion.com/crg/) (CRG) tool for the Blazor components. Refer [here to generate the component-wise scripts externally using CRG](https://blazor.syncfusion.com/documentation/common/custom-resource-generator).
450
+
The Syncfusion<supstyle="font-size:70%">®</sup> Blazor provides an option to generate a component's interop scripts using the [Custom Resource Generator](https://blazor.syncfusion.com/crg) (CRG) tool for the Blazor components. Refer [here to generate the component-wise scripts externally using CRG](https://blazor.syncfusion.com/documentation/common/custom-resource-generator).
Copy file name to clipboardExpand all lines: blazor/common/cdn-fallback.md
+3-29Lines changed: 3 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This section provides information about how to refer fallback [scripts](https://
13
13
14
14
## Blazor Web App
15
15
16
-
For Blazor Web app, refer the script and style sheet fallback from [Static Web Assets](https://blazor.syncfusion.com/documentation/common/adding-script-references#static-web-assets) inside the Script tag like below.
16
+
For **.NET 8 and .NET 9**Blazor Web Apps using any render mode (Server, WebAssembly, or Auto), refer the script and style sheet fallback from [Static Web Assets](https://blazor.syncfusion.com/documentation/common/adding-script-references#static-web-assets) inside the Script tag like below.
17
17
18
18
### Script fallback
19
19
@@ -56,35 +56,9 @@ You can refer the theme stylesheet inside the `<head>` of **~/Components/App.raz
56
56
{% endhighlight %}
57
57
{% endtabs %}
58
58
59
-
## Blazor Server App
59
+
## Blazor WebAssembly Standalone App
60
60
61
-
CDN links can be down by connection issues or some other problems. This will cause the site looks broken. Follow the below steps to resolve these issues in the Blazor application.
62
-
63
-
If you are using CDN for style sheet references then you have to add style sheet fallback from [Static Web Assets](https://blazor.syncfusion.com/documentation/common/adding-script-references#static-web-assets) by using the [link tag helper](https://learn.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/built-in/link-tag-helper?view=aspnetcore-7.0). Syncfusion<supstyle="font-size:70%">®</sup> theme provides the `e-control` class. You can check the style from provided class by using link tag helper property.
N> Alternately, fallback links can be provided using [script fallback](#script-fallback) and [style sheet fallback](#style-sheet-fallback) in blazor server app.
84
-
85
-
## Blazor WebAssembly App
86
-
87
-
For Blazor WebAssembly app, refer the script and style sheet fallback from [Static Web Assets](https://blazor.syncfusion.com/documentation/common/adding-script-references#static-web-assets) inside the Script tag like below.
61
+
For Blazor WebAssembly Standalone app, refer the script and style sheet fallback from [Static Web Assets](https://blazor.syncfusion.com/documentation/common/adding-script-references#static-web-assets) inside the Script tag like below.
Copy file name to clipboardExpand all lines: blazor/common/content-security-policy.md
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -22,11 +22,9 @@ To use Syncfusion<sup style="font-size:70%">®</sup> blazor components with s
22
22
23
23
These directives should be included in the `<head>` tag of the application's webpage, typically
24
24
25
-
* For **Blazor Web App**, inside the `<head>` of **~/Components/App.razor** file.
26
-
* For **Blazor Server application**, inside the `<head>` of
27
-
***~/Pages/_Host.cshtml** file for .NET 7.
28
-
***~/Pages/_Layout.cshtml** for .NET 6.
29
-
* For **Blazor WebAssembly App**, inside the `<head>` of **wwwroot/index.html** file.
25
+
* For **.NET 8 and .NET 9** Blazor Web Apps using any render mode (Server, WebAssembly, or Auto), inside the `<head>` of **~/Components/App.razor** file.
26
+
27
+
* For **Blazor WebAssembly Standalone App**, inside the `<head>` of **wwwroot/index.html** file.
Copy file name to clipboardExpand all lines: blazor/common/custom-resource-generator.md
+5-8Lines changed: 5 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ documentation: ug
9
9
10
10
# Custom Resource Generator
11
11
12
-
Syncfusion<supstyle="font-size:70%">®</sup> provides an option to generate a component's interop script and styles using the [Custom Resource Generator](https://blazor.syncfusion.com/crg/) (CRG) web tool for Blazor components from v19.2.0.44. This tool empowers users by generating precise interop scripts and styles specifically for their components. By leveraging the CRG, you can optimize loading times and enhance responsiveness compared to loading overall script and style resources.
12
+
Syncfusion<supstyle="font-size:70%">®</sup> provides an option to generate a component's interop script and styles using the [Custom Resource Generator](https://blazor.syncfusion.com/crg) (CRG) web tool for Blazor components from v19.2.0.44. This tool empowers users by generating precise interop scripts and styles specifically for their components. By leveraging the CRG, you can optimize loading times and enhance responsiveness compared to loading overall script and style resources.
13
13
14
14

15
15
@@ -19,9 +19,9 @@ Search and select the required Syncfusion<sup style="font-size:70%">®</sup>
19
19
20
20
Refer to the following steps to search and select the components in CRG:
21
21
22
-
1. Open [Syncfusion<supstyle="font-size:70%">®</sup> Custom Resource Generator](https://blazor.syncfusion.com/crg/) (CRG) application.
22
+
1. Open [Syncfusion<supstyle="font-size:70%">®</sup> Custom Resource Generator](https://blazor.syncfusion.com/crg) (CRG) application.
23
23
2. Type the required component name in the search bar, and then select the checkbox. The dependency of the selected component is resolved in the application itself, so you do not need to choose each dependent component manually.
24
-

24
+

25
25
3. Select the required built-in themes from the **Select Themes** option. This provides an option to select more than one theme.
26
26

27
27
@@ -47,11 +47,8 @@ N> When you download the resources of Material and Tailwind themes, either separ
47
47
48
48
1. Copy and paste the downloaded custom resources in the Blazor application `~/wwwroot` folder.
49
49
2. Now, manually add the custom interop script and styles in the Blazor App.
50
-
* For **Blazor Web App**, reference custom interop script in `~/Components/App.razor` file.
51
-
* For **Blazor WASM App**, reference custom interop script in `~/wwwroot/index.html` file.
52
-
* For **Blazor Server App**, reference custom interop script in
53
-
*`~/Pages/_Layout.cshtml` file for `.NET 6` project
54
-
*`~/Pages/_Host.cshtml` file for `.NET 7` project.
50
+
* For **.NET 8 and .NET 9** Blazor Web Apps using any render mode (Server, WebAssembly, or Auto), reference custom interop script in `~/Components/App.razor` file.
51
+
* For **Blazor WASM Standalone App**, reference custom interop script in `~/wwwroot/index.html` file.
Copy file name to clipboardExpand all lines: blazor/common/data-binding/sql-server-data-binding.md
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ The following software are needed:
19
19
20
20
* Microsoft.EntityFrameworkCore.SqlServer
21
21
* Visual Studio 2022
22
-
* .NET 6.0 or later.
22
+
* .NET 8.0 or later.
23
23
24
24
## Create the database
25
25
@@ -413,12 +413,9 @@ Themes provide life to components. Syncfusion<sup style="font-size:70%">®</s
413
413
414
414
In this demo application, the latest theme will be used.
415
415
416
-
* For **Blazor Web App**, refer stylesheet inside the `<head>` of **~/Components/App.razor**file for .NET 8 and .NET 9.
416
+
* For **.NET 8 and .NET 9** Blazor Web Apps using any render mode (Server, WebAssembly, or Auto), refer stylesheet inside the `<head>` of **~/Components/App.razor** .
417
417
418
418
* For **Blazor WebAssembly application**, refer stylesheet inside the `<head>` element of **wwwroot/index.html** file.
419
-
* For **Blazor Server application**, refer stylesheet inside the `<head>` element of
@@ -103,9 +103,9 @@ In Blazor Web App and Blazor WASM app, you can set culture statically in Blazor'
103
103
104
104
The app's culture can be set in JavaScript by setting `applicationCulture` in Blazor's start option by following the steps below,
105
105
106
-
* For `Blazor Web App`, prevent Blazor autostart by adding `autostart="false"` attribute to the Blazor `<script>` tag in the **~/Components/App.razor** file.
106
+
* For **.NET 8 and .NET 9**Blazor Web Apps using any render mode (Server, WebAssembly, or Auto), prevent Blazor autostart by adding `autostart="false"` attribute to the Blazor `<script>` tag in the **~/Components/App.razor** file.
107
107
108
-
* For `Blazor WebAssembly App` , prevent Blazor autostart by adding `autostart="false"` attribute to Blazor's `<script>` tag in the **wwwroot/index.html** file.
108
+
* For `Blazor WebAssembly Standalone App` , prevent Blazor autostart by adding `autostart="false"` attribute to Blazor's `<script>` tag in the **wwwroot/index.html** file.
109
109
110
110
{% tabs %}
111
111
@@ -119,7 +119,7 @@ The app's culture can be set in JavaScript by setting `applicationCulture` in Bl
@@ -224,9 +208,9 @@ CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("de-DE");
224
208
225
209
The culture can be set dynamically based on user's preference. The following example demonstrates how to use a localization cookie to store user's localization preference.
226
210
227
-
### Blazor Web App and Blazor WASM App
211
+
### Blazor Web App and Blazor Standalone WASM App
228
212
229
-
For `Blazor Web App and Blazor WASM App`, set the `BlazorWebAssemblyLoadAllGlobalizationData` property to true in the project file:
213
+
For `Blazor Web App and Blazor WASM Standalone App`, set the `BlazorWebAssemblyLoadAllGlobalizationData` property to true in the project file:
230
214
231
215
{% tabs %}
232
216
@@ -240,9 +224,9 @@ For `Blazor Web App and Blazor WASM App`, set the `BlazorWebAssemblyLoadAllGloba
240
224
241
225
{% endtabs %}
242
226
243
-
* For Blazor Web App, add JS function in `~/Components/App.razor` file (after Blazor's `<script>` tag and before the closing `</body>`), to get and set the user's selected culture in the browser local storage.
227
+
* For **.NET 8 and .NET 9**Blazor Web Apps using any render mode (Server, WebAssembly, or Auto), add JS function in `~/Components/App.razor` file (after Blazor's `<script>` tag and before the closing `</body>`), to get and set the user's selected culture in the browser local storage.
244
228
245
-
* For Blazor WASM App, add JS function in `wwwroot/index.html` file (after Blazor's `<script>` tag and before the closing `</body>`), to get and set the user's selected culture in the browser local storage.
229
+
* For Blazor WASM Standalone App, add JS function in `wwwroot/index.html` file (after Blazor's `<script>` tag and before the closing `</body>`), to get and set the user's selected culture in the browser local storage.
0 commit comments