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: docs-aspnet-core/getting-started/getting-started.md
+59-77Lines changed: 59 additions & 77 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,48 +9,37 @@ position: 1
9
9
10
10
# Getting Started with Progress<sup>®</sup> Telerik<sup>®</sup> UI for ASP.NET Core
11
11
12
-
This article demonstrates how to configure an ASP.NET Core project to use Telerik UI for ASP.NET Core.
12
+
This article demonstrates how to configure an ASP.NET Core project to use Telerik UI for ASP.NET Core in Visual Studio 2017.
13
13
14
14
## Prerequisites
15
15
16
-
The prerequisites you need depend on the Visual Studio (VS) version your project requires:
16
+
The prerequisites for creating and running an ASP.NET Core on Windows with Visual Studio 2017 are described on the [.NET Core documentation site](https://docs.microsoft.com/en-us/dotnet/core/windows-prerequisites).
4. (Optional) Download [.NET SDK Core for Windows](https://www.microsoft.com/net/download/core).
18
+
> **Important**
19
+
>
20
+
> It's possible to use Visual Studio 2015 only for .NET Core 1.x development, but it's not recommended for the following reasons:
21
+
>
22
+
> * The .NET Core tooling is a preview version, which is not officially supported.
23
+
> * The projects are project.json-based, which is deprecated.
24
+
>
25
+
> Note also, that if you use VS 2015, in order to ensure the matching of the ASP.NET Core version which is distributed with the Telerik UI for ASP.NET Core, you need to manually change the `Microsoft.AspNetCore.Routing` and `Microsoft.AspNetCore.Mvc` versions to `1.1.0` in `project.json`.
31
26
32
27
## Configuration
33
28
34
-
To configure an ASP.NET Core Web Application to use Telerik UI for ASP.NET Core:
29
+
Configure an ASP.NET Core Web Application to use Telerik UI for ASP.NET Core:
35
30
36
31
1. Create an [ASP.NET Core Web Application](#configuration-Create).
37
32
2. Add the [Kendo UI NuGet package](#configuration-Add).
38
33
39
34
### Create ASP.NET Core Project
40
35
41
-
> **Important**
42
-
>
43
-
> If you are configuring an existing project, skip this step.
44
-
45
-
To create an ASP.NET Core Web Application (with or without Razor Pages):
2.Select the Telerik package source and search for `Telerik.UI.for.AspNet.Core`.
56
+
2.Click the `Browse` tab, select the Telerik package source and search for `Telerik.UI.for.AspNet.Core`.
68
57
69
-
3. Install the `Telerik.UI.for.AspNet.Core` package. This should add a line to your `project.json` (for VS2015) or `csproj` (for VS2017) similar to the examples below.
70
-
71
-
> **Important**
72
-
>
73
-
> If you use VS 2015 and to ensure the matching of the ASP.NET Core version which is distributed with the Telerik UI for ASP.NET Core, you need to manually change the `Microsoft.AspNetCore.Routing` and `Microsoft.AspNetCore.Mvc` versions to `1.1.0` in `project.json`.
58
+
3. Install the `Telerik.UI.for.AspNet.Core` package. This should add a line to your `.csproj` file similar to the example below.
.AddJsonOptions(options => options.SerializerSettings.ContractResolver = new DefaultContractResolver());
80
+
// Add Kendo UI services to the services container
81
+
services.AddKendo();
82
+
}
83
+
84
+
* Add the required using for `Newtonsoft.Json.Serialization`:
85
+
86
+
###### Example
103
87
104
-
// Add Kendo UI services to the services container
105
-
services.AddKendo();
106
-
}
88
+
...
89
+
using Newtonsoft.Json.Serialization;
90
+
...
107
91
108
-
Locate the `Configure` method and add a call to `app.UseKendo` at the end.
92
+
* Locate the `Configure` method and add a call to `app.UseKendo` at the end.
109
93
110
-
###### Example
94
+
###### Example
111
95
112
-
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
113
-
{
114
-
...
96
+
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
97
+
{
98
+
...
115
99
116
-
// Configure Kendo UI
117
-
app.UseKendo(env);
118
-
}
100
+
// Configure Kendo UI
101
+
app.UseKendo(env);
102
+
}
119
103
120
104
5. Import the `Kendo.Mvc.UI` namespace in `~/Views/_ViewImports.cshtml` through `@using Kendo.Mvc.UI`.
121
105
@@ -137,7 +121,7 @@ To add the NuGet packages:
137
121
138
122
7. Register the Kendo UI styles and scripts in `~/Views/Shared/_Layout.cshtml`.
139
123
140
-
> **Important**
124
+
> **Important**
141
125
>
142
126
> In the default .NET Core template, the jQuery scripts are included at the end of the `<body>` element. To properly load the Telerik UI for ASP.NET HtmlHelpers, move the jQuery scripts and the Kendo UI client-side scripts to the `<head>` element and make sure that the Kendo UI scripts are loaded after the jQuery ones.
0 commit comments