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
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,3 +39,10 @@ You can also use the official VS 2019 installation and enable the .NET Core 3.0
39
39
>note Once you have the Blazor application running, continue to the next steps.
40
40
#end
41
41
42
+
43
+
#add-nuget-feed
44
+
## Add the Telerik NuGet Feed to Visual Studio
45
+
46
+
Telerik UI for Blazor is distributed through our private NuGet feed. Follow the [Setup the Telerik Private NuGet Feed]({%slug installation/nuget%}) article to set this up in case you don't have it already.
Copy file name to clipboardExpand all lines: getting-started/client-blazor.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ position: 1
10
10
11
11
# First Steps with Client-side UI for Blazor
12
12
13
-
This article explains how to get the Telerik UI for Blazor components in your Client-side Blazor project and start using them quickly. The process consists of the following steps:
13
+
This article explains how to get the Telerik UI for Blazor components in your **Client-side** Blazor project and start using them quickly. The process consists of the following steps:
14
14
15
15
1.[Set Up a Blazor Project](#set-up-a-blazor-project)
16
16
1.[Add the Telerik NuGet Feed to Visual Studio](#add-the-telerik-nuget-feed-to-visual-studio)
@@ -114,4 +114,4 @@ The final step is to actually use a component on a view and run it in the browse
114
114
115
115
Now you have the Telerik components running in your Blazor app.
116
116
117
-
Next, you can explore the [live demos](https://demos.telerik.com/blazor) and the [examples repo](https://github.com/telerik/ui-for-blazor-examples/) we have.
117
+
Next, you can explore the [live demos](https://demos.telerik.com/blazor) and the rest of the documentation.
page_title: First Steps with Server-side UI for Blazor
4
+
description: First Steps with UI for Blazor Server-side
5
5
slug: getting-started/server-side
6
-
tags: get,started,first,steps
7
-
published: True
6
+
tags: get,started,first,steps,server
7
+
published: true
8
8
position: 1
9
9
---
10
10
11
-
# First Steps with UI for Blazor
11
+
# First Steps with Server-side UI for Blazor
12
12
13
-
This article explains how to get the Telerik UI for Blazor components in your project and start using them quickly. The process consists of the following steps:
13
+
This article explains how to get the Telerik UI for Blazor components in your **Server-side** Blazor project and start using them quickly. The process consists of the following steps:
14
14
15
15
1.[Set Up a Blazor Project](#set-up-a-blazor-project)
16
16
1.[Add the Telerik NuGet Feed to Visual Studio](#add-the-telerik-nuget-feed-to-visual-studio)
17
17
1.[Add the Telerik Components to Your Project](#add-the-telerik-components-to-your-project)
18
18
1.[Add a Telerik Component to a View](#add-a-telerik-component-to-a-view)
19
19
20
-
<!-- Once you have your first simple control up and running, take a look at the [next steps](#next-steps) section to start exploring the control functionality in more detail.-->
[Blazor](https://blazor.net/) is still an experimental technology, so you need to ensure you can run its vanilla version first. To do that, follow the MSDN tutorial and make sure that you can run the basic sample Blazor application: [https://docs.microsoft.com/en-us/aspnet/core/client-side/spa/blazor/get-started](https://docs.microsoft.com/en-us/aspnet/core/client-side/spa/blazor/get-started).
25
-
26
-
>tip Make sure that you have the latest bits installed (ASP.NET Core 3.0 and Visual Studo 2019 Preview channel are required). You can also use the official VS 2019 installation and enable the .NET Core 3.0 Preview in Tools > Options > Projects and Solutions > .NET Core -> select "Use previews of the .NET Core SDK".
27
-
28
-
Once you have a Blazor application running, continue to the next steps.
29
-
30
-
## Add the Telerik NuGet Feed to Visual Studio
31
-
32
-
Telerik UI for Blazor is distributed through our private NuGet feed. If you already have that working (for exapmle, you have used other tools of ours through it), skip to the [Add the Telerik Components to Your Project](#add-the-telerik-components-to-your-project) section.
33
-
34
-
To add the Telerik private NuGet feed, follow the steps below:
35
-
36
-
1. Download the [latest NuGet executable](https://dist.nuget.org/win-x86-commandline/latest/nuget.exe).
37
-
1. Open a Command Prompt and change the path to where the `nuget.exe` is downloaded.
38
-
1. Execute the command from the example below.
39
-
40
-
### Store Encrypted Credentials
41
-
42
-
The command from the example below stores a token in the `%AppData%\NuGet\NuGet.config` file. Your original credentials cannot be obtained from this token.
43
-
44
-
>note If you are unable to connect to the feed by using encrypted credentials, try the alternative approach of storing credentials in clear text explained below. The ASP.NET Core tooling this steps on does not fully support encrypted credentials.
45
-
46
-
>caption Store Encrypted Credentials for the Telerik NuGet feed
### Store Credentials in Clear Text for the Telerik NuGet feed
54
-
55
-
The command from the example below stores the password in clear text in the `%AppData%\NuGet\NuGet.config` file. If you are unable to connect to the feed using encrypted credentials, use this alternative approach.
56
-
57
-
>caption Store Plain-text Credentials for the Telerik NuGet feed
If you have already stored a token instead of storing the credentials as clear text, update the definition in the `%AppData%\NuGet\NuGet.config` file by using the following command.
66
-
67
-
>caption Update Plain-text Credentials for the Telerik NuGet feed
We recommend the usage of `Blazor (ASP.NET Hosted)` project. If you have one, go to the [Add to Existing Project](#add-to-existing-project) section below.
28
+
To use Blazor server-side, you need to use the `Razor Components` type of project. If you have one, go to the [Add to Existing Project](#add-to-existing-project) section below.
79
29
80
30
If you don't have a Blazor project set up, first you need to create one:
81
31
@@ -87,9 +37,9 @@ If you don't have a Blazor project set up, first you need to create one:
87
37
88
38

89
39
90
-
1. Choose the `Blazor (ASP.NET Hosted)` project type and click `Create`.
40
+
1. Choose the `Razor Components` project type and click `Create`.
@@ -100,34 +50,34 @@ To get access to the UI for Blazor components, follow these steps:
100
50
101
51
1. Install the `Telerik.UI.for.Blazor` NuGet package to your Blazor project. If you do not see it in the `telerik.com` feed, wait for a about 20-30 minutes after activating the trial:
102
52
103
-
1. Right-click on the `Client`project in the solution and select `Manage NuGet Packages`:
53
+
1. Right-click on the project in the solution and select `Manage NuGet Packages`:
1. Choose the `telerik.com` feed, find the `Telerik.UI.for.Blazor` package and click `Install`:
108
58
109
59

110
60
111
-
1. Open the `_ViewImports.cshtml`at the root of the client web application and add the following line to register the Telerik components for the entire project:
61
+
1. Open the `~/Components/_ViewImports.cshtml`file and add the following line to register the Telerik components for all component files:
112
62
113
63
**CSHTML**
114
64
115
65
@addTagHelper*,Telerik.Blazor
116
66
117
-
1. Open the `~/wwwroot/index.html` file in the client web application and register the [Theme stylesheet]({%slug general-information/themes%}) (make sure to use the correct version that matches the official Kendo UI for jQuery release number):
67
+
1. Open the `~/Pages/Index.cshtml`and register the [Theme stylesheet]({%slug general-information/themes%}) (note the escaping for the `@` symbol):
Now your project can use the Telerik UI for Blazor components in all its views.
74
+
Now your project can use the Telerik UI for Blazor components in all its component files.
125
75
126
76
## Add a Telerik Component to a View
127
77
128
78
The final step is to actually use a component on a view and run it in the browser. For example:
129
79
130
-
1.**Add** a **Button** component to the `~/Pages/Index.cshtml` view:
80
+
1.**Add** a **Button** component to the `~/Components/Pages/Index.cshtml` view:
131
81
132
82
**CSHTML**
133
83
@@ -162,4 +112,4 @@ The final step is to actually use a component on a view and run it in the browse
162
112
163
113
Now you have the Telerik components running in your Blazor app.
164
114
165
-
Next, you can explore the [live demos](https://demos.telerik.com/blazor) and the [examples repo](https://github.com/telerik/ui-for-blazor-examples/) we have.
115
+
Next, you can explore the [live demos](https://demos.telerik.com/blazor) and the rest of the documentation.
0 commit comments