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: _contentTemplates/common/get-started.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,8 @@ To setup a local NuGet package source, so you can install the Telerik components
130
130
131
131
132
132
#root-component-telerik-layout
133
+
To use popups (for example, dropdowns, menus, windows, grid filters, etc.), you must add the `TelerikRootComponent` component at the root level of the app:
134
+
133
135
Next to your main layout file (by default, the `~/Shared/MainLayout.razor` file in the Blazor project), add a Razor component called `TelerikLayout.razor` with the following content:
Copy file name to clipboardExpand all lines: getting-started/client-blazor.md
+19-13Lines changed: 19 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Make your first steps with Telerik UI for Blazor and build an app t
5
5
slug: getting-started/client-side
6
6
tags: get,started,first,steps,client
7
7
published: true
8
-
position: 1
8
+
position: 2
9
9
---
10
10
11
11
# First Steps with Client-Side UI for Blazor
@@ -39,17 +39,16 @@ This article explains how to get the <a href = "https://www.telerik.com/blazor-u
39
39
40
40
## Step 4: Enable the Blazor UI Components
41
41
42
-
To enable the Telerik UI for Blazor components, you must add several client-side dependencies to the application:
42
+
To enable the Telerik UI for Blazor components, you must add several client-side dependencies to the application, include the required `@using` statements, add the `TelerikRootComponent` component, and register the Telerik Blazor service.
43
+
44
+
### 4.1. Add the Telerik UI for Blazor Client Assets
43
45
44
46
1\. Add the `telerik-blazor.js` file to your main index file—`wwwroot/index.html`.
2\. To enable the use of static assets in your project, add the `app.UseStaticFiles();` line to the startup file of your `.Server` project (by default, this line is already present):
50
-
51
-
* Use `Startup.cs` for .NET 3.x
52
-
* Use `Program.cs` for .NET 6 and .NET 7
51
+
2\. To enable the use of static assets in your project, add the `app.UseStaticFiles();` line to the `Program.cs` file of your `.Server` project (by default, this line is already present).
5\.In the `~/_Imports.razor` file, add the `@using` directives below. This configures the project to recognize the Telerik components in all files. You can register one or both icon namespaces, depending on the [icon type you will be using]({%slug general-information/font-icons%}).
62
+
In the `~/_Imports.razor` file, add the `@using` directives below. This configures the project to recognize the Telerik components in all files. You can register one or both icon namespaces, depending on the [icon type you will be using]({%slug general-information/font-icons%}).
67
63
68
64
**_Imports.razor**
69
65
@@ -72,10 +68,20 @@ To enable the Telerik UI for Blazor components, you must add several client-side
72
68
@using Telerik.FontIcons
73
69
@using Telerik.SvgIcons
74
70
71
+
### 4.3. Add the TelerikRootComponent
72
+
73
+
Add a `TelerikRootComponent` component as a top-level component in the app and make sure it wraps all content.
Copy file name to clipboardExpand all lines: getting-started/hybrid-blazor.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Make your first steps with Telerik UI for Blazor and build a .NET M
5
5
slug: getting-started/hybrid-blazor
6
6
tags: get,started,first,steps,server,hybrid,maui
7
7
published: true
8
-
position: 3
8
+
position: 5
9
9
---
10
10
11
11
# First Steps with Blazor Hybrid
@@ -31,7 +31,7 @@ Before adding the Telerik UI for Blazor components, ensure that the correspondin
31
31
32
32
The process for adding Telerik UI for Blazor to a WinForms, WPF, or MAUI app is similar to including the components in a [native Blazor app]({%slug getting-started/what-you-need%}) and involves the six steps listed below.
33
33
34
-
### 1. Get the `Telerik UI for Blazor` Package
34
+
### 1. Get the Telerik UI for Blazor Package
35
35
36
36
To use the UI for Blazor components, install the `Telerik.UI.for.Blazor` package and include its reference in the `.csproj` file of the app. [Read more on where to get the `Telerik.UI.for.Blazor` package...]({%slug getting-started/what-you-need%}#getting-the-telerik-packages)
37
37
@@ -41,7 +41,7 @@ To have the Telerik Blazor components look and behave as expected, you need the
41
41
42
42
You can add the Telerik resources as [static assets]({%slug getting-started/what-you-need%}#using-static-assets) or reference them from a [cloud CDN]({%slug getting-started/what-you-need%}#using-cdn).
43
43
44
-
### 3. Include `@using` Statements
44
+
### 3. Include @using Statements
45
45
46
46
You can set the project to recognize all Telerik components without explicit `@using` statements in every `.razor` file. To achieve this, add the code below to your `~/_Imports.razor` file. You can register one or both icon namespaces depending on the [icon type you will be using]({%slug general-information/font-icons%}).
47
47
@@ -56,7 +56,7 @@ You can set the project to recognize all Telerik components without explicit `@u
56
56
@using Telerik.SvgIcons
57
57
````
58
58
59
-
### 4. Add the `TelerikRootComponent`
59
+
### 4. Add the TelerikRootComponent
60
60
61
61
Add a `TelerikRootComponent` component as a top-level component in the app and make sure it wraps all content. At the time of writing, custom layouts are not supported, so you can add it to:
Copy file name to clipboardExpand all lines: getting-started/server-blazor.md
+21-18Lines changed: 21 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Make your first steps with Telerik UI for Blazor and build an app t
5
5
slug: getting-started/server-side
6
6
tags: get,started,first,steps,server
7
7
published: true
8
-
position: 2
8
+
position: 3
9
9
---
10
10
11
11
# First Steps with Server-Side UI for Blazor
@@ -39,42 +39,35 @@ This article explains how to get the Telerik UI for Blazor components in your <a
39
39
40
40
## Step 4: Enable the Blazor UI Components
41
41
42
-
To enable the Telerik UI for Blazor components, you must add several client-side dependencies to the application:
42
+
To enable the Telerik UI for Blazor components, you must add several client-side dependencies to the application, include the required `@using` statements, add the `TelerikRootComponent` component, and register the Telerik Blazor service.
43
+
44
+
### 4.1. Add the Telerik UI for Blazor Client Assets
43
45
44
46
1\. Add the `telerik-blazor.js` file to your main index file:
2\. To enable the use of static assets in your project, add the `app.UseStaticFiles();` line to the startup file of your Blazor Server project (by default, this line is already present):
54
-
55
-
* Use `Startup.cs` for .NET 3.x
56
-
* Use `Program.cs` for .NET 6 and .NET 7
55
+
2\. To enable the use of static assets in your project, add the `app.UseStaticFiles();` line to the `Program.cs` file of your Blazor Server project (by default, this line is already present).
3\. To select the appearance and color scheme for the Telerik Blazor components, add the [theme stylesheet]({%slug general-information/themes%}) as a [static asset]({%slug general-information/themes%}#static-assets) or from a [CDN]({%slug general-information/themes%}#cdn).
63
62
64
-
* Use the `~/Pages/_Host.cshtml` index file for .NET 3.x and .NET 7
63
+
* Use the `~/Pages/_Host.cshtml` index file for .NET 7
65
64
* Use the `~/Pages/_Layout.cshtml` index file for .NET 6
5\.In the `~/_Imports.razor` file, add the `@using` directives below. This configures the project to recognize the Telerik components in all files. You can register one or both icon namespaces, depending on the [icon type you will be using]({%slug general-information/font-icons%}).
70
+
In the `~/_Imports.razor` file, add the `@using` directives below. This configures the project to recognize the Telerik components in all files. You can register one or both icon namespaces, depending on the [icon type you will be using]({%slug general-information/font-icons%}).
78
71
79
72
**_Imports.razor**
80
73
@@ -83,10 +76,20 @@ To enable the Telerik UI for Blazor components, you must add several client-side
0 commit comments