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: getting-started/what-you-need.md
+56-16Lines changed: 56 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,23 +79,13 @@ Note that
79
79
80
80
## Project Configuration
81
81
82
-
To have the framework recognize the Telerik Components, you must register them in the `Startup.cs` file of your Blazor project (if you are using client-side Blazor, this is the Client web application's file):
82
+
To use the Telerik Components, you must add a few items to your projects. Depending on the type of project (server-side or client-side), the steps differ slightly in syntax.
1. Follow the [Common Configuration](#common-configuration) instructions
85
+
2. Follow the section for your project type - [Client-side (WASM)](#client-side-project-specifics) or [Server-side](#server-side-project-specifics)
94
86
95
-
//more code may be present here
96
-
}
97
-
}
98
-
````
87
+
88
+
### Common Configuration
99
89
100
90
You can have the project recognize all our components without explicit `@using` statements on every `.razor` file. It is enough to add the following to your **`~/_Imports.razor`** file:
101
91
@@ -111,11 +101,61 @@ To allow working with detached popups (for example, dropdown lists, menus, grid
The final step is to register the Telerik services. In a client-side Blazor project, you do that in the `Program.cs` file of the WebAssembly (Client) project:
110
+
111
+
````CS
112
+
usingMicrosoft.AspNetCore.Blazor.Hosting;
113
+
usingMicrosoft.Extensions.DependencyInjection;
114
+
usingSystem.Threading.Tasks;
115
+
116
+
namespaceClientBlazorProject.Client// make sure this matches your actual WASM project namespace
117
+
{
118
+
publicclassProgram
119
+
{
120
+
publicstaticasyncTaskMain(string[] args)
121
+
{
122
+
// sample host builder for a WASM app, yours may differ
0 commit comments