Skip to content

Commit 72bfa68

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent b8d2586 commit 72bfa68

File tree

6 files changed

+104
-62
lines changed

6 files changed

+104
-62
lines changed

docs-aspnet/getting-started-core/first-steps.md

Lines changed: 86 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -12,81 +12,85 @@ permalink: /getting-started/first-steps
1212

1313
<iframe width="700" height="400" src="https://www.youtube.com/embed/AIFNeWrZCdM?list=PLvmaC-XMqeBaHWzU1zyFgaNi2pcuix6Ps" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
1414

15-
Welcome to the First Steps on Windows guide on getting started with Progress<sup>®</sup> Telerik<sup>®</sup> UI for ASP.NET Core with Visual Studio!
15+
This article presents a use case scenario that demonstrates how to start working with the UI for ASP.NET Core. You will implement the Kendo UI DatePicker for ASP.NET Core in your project by using the Telerik UI DatePicker HtmlHelper or TagHelper. In this guide, we use Visual Studio 2019 for Windows.
1616

17-
The guide creates a use-case scenario which demonstrates how to start working with the suite and implements the Kendo UI DatePicker for ASP.NET Core in your project by using the Telerik UI DatePicker HtmlHelper or TagHelper. For its purposes, the guide uses Visual Studio for Windows 2019.
18-
19-
To configure an ASP.NET Core web application to use UI for ASP.NET Core, you can use either of the following approaches:
20-
* (Demonstrated in this guide) Create the application from scratch and manually add the necessary setup.
17+
To configure an ASP.NET Core web application to use Telerik UI for ASP.NET Core, you can apply either of the following approaches:
18+
* Create the application from scratch and manually add the necessary setup (demonstrated in this article).
2119
* [Use the Telerik UI for ASP.NET Core Visual Studio extensions]({% slug overview_visualstudio_aspnetcore %}) and create an application that has all necessary scripts, styles, and editor templates.
2220

2321
To get up and running with the project:
2422

25-
1. [Download the controls](https://www.telerik.com/download-trial-file/v2/aspnet-core-ui)
26-
1. [Meet the requirements](#meeting-the-requirements)
27-
1. [Create the ASP.NET Core application](#creating-the-application)
23+
1. [Meet the requirements](#meet-the-requirements)
24+
1. [Create the ASP.NET Core application](#create-the-application)
2825
1. [Add the Telerik NuGet Feed to Visual Studio](#add-the-telerik-nuget-feed-to-visual-studio)
29-
1. [Add the UI for ASP.NET Core NuGet package](#adding-the-nuget-package)
30-
1. [Add reference to Kendo.Mvc.UI](#adding-reference-to-kendomvcui)
31-
1. [Include the Telerik UI for ASP.NET Core client-side resources](#including-the-telerik-ui-for-aspnet-core-client-side-resources)
26+
1. [Add the UI for ASP.NET Core NuGet package](#add-the-nuget-package)
27+
1. [Add a reference to Kendo.Mvc.UI](#add-a-reference-to-kendomvcui)
28+
1. [Include the Telerik UI for ASP.NET Core client-side resources](#include-the-telerik-ui-for-aspnet-core-client-side-resources)
29+
1. [Add a Telerik UI component](#add-a-telerik-ui-component)
3230

33-
## Meeting the Requirements
31+
## Meet the Requirements
3432

35-
Follow the instructions from the [official .NET Core documentation site](https://docs.microsoft.com/en-us/dotnet/core/windows-prerequisites).
33+
Telerik UI for ASP.NET Core requires .NET Core. To install .NET core, follow the instructions on [Microsoft's .NET Core documentation site](https://docs.microsoft.com/en-us/dotnet/core/windows-prerequisites).
3634

37-
## Creating the Application
35+
## Create the Application
3836

39-
1. Open Visual Studio for Windows 2019 and select **Create a New Project**.
37+
1. Open Visual Studio 2019 for Windows and select **Create a new project**.
4038
1. Select **ASP.NET Core Web Application** and click **Next**.
4139
1. Set a name and location for the project and click **Create**.
4240
1. Select **Web Application (Model-View-Controller)** and click **Create**.
4341

4442
## Add the Telerik NuGet Feed to Visual Studio
4543

46-
* Add the Telerik NuGet Feed for Trial License Users
47-
* Add the Telerik NuGet Feed for Users with Commercial License
48-
49-
Note that when the Nuget Feed is added to Visual Studio through the Progress Trial Installer or through the Progress Control Panel, steps 2 and 3 from the [Add the UI for ASP.NET Core NuGet package section](#adding-the-nuget-package) will be set up automatically.
50-
44+
Telerik maintains a NuGet Feed with official UI for ASP.NET Core releases and service packs. These packages are available for registered users.
45+
46+
* If you use a free trial license, follow [these steps](#add-the-telerik-nuget-feed-for-trial-license-users) to add the NuGet feed to Visual Studio.
47+
* If you purchased a commercial license, follow [these steps](#add-the-telerik-nuget-feed-for-users-with-commercial-license) to add the NuGet feed to Visual Studio.
48+
49+
>**Tip**
50+
>
51+
>If you have already configured the Telerik NuGet feed in Visual Studio, jump to [Add the NuGet Package](#add-the-nuget-package).
52+
5153
### Add the Telerik NuGet Feed for Trial License Users
5254

53-
1. If you don't have an active license, download an [UI for ASP.NET CORE trial](https://www.telerik.com/aspnet-core-ui). During the installation of the components, you can setup the [Telerik NuGet]({% slug nuget_install_aspnetmvc6_aspnetmvc %}) feed to be added automatically - check the "Set up Telerik NuGet package source" checkbox:
55+
The easiest way to add the Telerik NuGet feed to Visual Studio if you are a trial user is to install the UI for ASP.NET Core free trial:
56+
57+
1. Download the [UI for ASP.NET Core free trial](https://www.telerik.com/aspnet-core-ui) installer. You need to create a free account if don't have one.
58+
1. Run the installer.
59+
1. Select the option **Set up Telerik NuGet package source** to automatically add the [Telerik NuGet feed]({% slug nuget_install_aspnetmvc6_aspnetmvc %}).
5460

5561
![NuGet checkbox in Progress Trial Installer](../getting-started-core/images/check-nuget.png)
5662

5763
### Add the Telerik NuGet Feed for Users with Commercial License
5864

59-
1. If you have an active commercial UI for ASP.NET Core license, you can automatically set up the NuGet Feed through the Progress Control Panel. Download the Progress Control Panel from the Overview page of your Telerik account.
65+
The easiest way to add the Telerik NuGet feed to Visual Studio if you purchased a commercial license is to use the Progress Control Panel:
66+
67+
1. Download the Progress Control Panel from the **Overview** page of your [Telerik account](https://www.telerik.com/account/).
6068

6169
![Download Progress Control Panel](../getting-started-core/images/download-control-panel.png)
6270

63-
1. When logging in the Progress Control Panel, check the "set up Telerik NuGet package source" option.
71+
1. Run the Progress Control Panel exe.
72+
73+
1. On the Login screen, check the **set up Telerik NuGet package source** option.
6474

6575
![Set Up Nuget on Progress Control Panel Login](../getting-started-core/images/login-control-panel.png)
6676

67-
If you miss to set up the Nuget Feed on login, go to the Progress Control Panel options and scroll to **Nuget Settings**. Enter your Telerik credentials and click `Save and Close` button.
77+
1. If you miss to set up the Nuget Feed on login, go to the Progress Control Panel options and scroll to **Nuget Settings**. Enter your Telerik credentials and click the **Save and Close** button.
6878

6979
![Set Up Nuget on Progress Control Panel options](../getting-started-core/images/nuget-control-panel-options.png)
7080

71-
## Adding the NuGet Package
81+
## Add the NuGet Package
7282

7383
1. Open the NuGet Package Manager.
7484

7585
![Locating and opening the NuGet package manager menu](../getting-started-core/images/manage-nuget.png)
7686

77-
1. Add a new [package source](https://docs.microsoft.com/en-us/nuget/tools/package-manager-ui#package-sources) to https://nuget.telerik.com/nuget.
78-
79-
![Adding the new NuGet source dialog](../getting-started-core/images/add-nuget-source.png)
80-
81-
1. From the package source drop-down, select **Telerik Source** and add your credentials (telerik.com email and password) as prompted.
82-
83-
![Adding the credentials and authenticating for NuGet](../getting-started-core/images/nuget-authenticate.png)
87+
1. From the **Package source** drop-down, select the Telerik NuGet source.
8488

8589
1. Click the **Browse** tab and search for `Telerik.UI.for.AspNet.Core` to install it. As a result, a line similar to `<PackageReference Include="Telerik.UI.for.AspNet.Core" Version="{{ site.mvcCoreVersion }}" />` is added to your `.csproj` file.
8690

8791
![Selecting and installing the NuGet package](../getting-started-core/images/nuget-install.png)
8892

89-
## Adding reference to Kendo.Mvc.UI
93+
## Add a Reference to Kendo.Mvc.UI
9094

9195
1. Open the `Startup.cs` file and register the Kendo UI services in the `ConfigureServices` method.
9296

@@ -104,32 +108,64 @@ Note that when the Nuget Feed is added to Visual Studio through the Progress Tri
104108
@addTagHelper *, Kendo.Mvc
105109
@using Kendo.Mvc.UI
106110

107-
## Including the Telerik UI for ASP.NET Core client-side resources
111+
## Include the Telerik UI for ASP.NET Core Client-Side Resources
108112

109-
1. Include the client-side resources.
113+
>**Note**
114+
>
115+
>* The CDN links and/or package versions have to point to the same UI for ASP.NET Core version that your project references.
116+
>* The Kendo UI scripts have to be placed after `jQuery`.
110117
111-
> * The CDN links and/or package versions have to point to the same UI for ASP.NET Core version which your project references.
112-
> * The Kendo UI scripts have to be placed after `jQuery`.
118+
Before you can use a Telerik UI component, you must include the theme, the jQuery script, and the Kendo UI scripts:
113119

114-
7.1 Go to `~\Views\Shared\_Layout.cshtml` and add the theme of your choice to the `<head>` of the document. Since the Microsoft project uses Bootstrap, you can use the Kendo UI SASS Bootstrap v4 theme to match it.
120+
1. Go to `~\Views\Shared\_Layout.cshtml` and add the theme of your choice to the `<head>` of the document. Since the Microsoft project uses Bootstrap, you can use the Kendo UI SASS Bootstrap v4 theme to match it:
115121

116-
7.2 The Microsoft ASP.NET Core Web Application template comes with a jQuery script reference at the end of _Layout.cshtml file. Find it and remove it. The Kendo UI script files required by UI for ASP.NET Core must be loaded in the `<head>` tag after the `jQuery` script.
122+
<head>
123+
...
124+
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
125+
<link rel="stylesheet" href="~/css/site.css" />
117126

118-
7.3 Copy and paste the scripts from the snippet bellow to the `<head>` tag in the _Layout. The content of the `<head>` tag with the theme file and the script files included should look as shown in the snippet below. `kendo.all.min.js` and `kendo.aspnetmvc.min.js` script files have to be loaded after the `jquery.min.js` script. `jQuery` should be loaded only once in the `<head>` tag. Make sure there are no duplicate references elsewhere in the _Layout.
127+
@* Add the Kendo Bootstrap v4 theme: *@
128+
<link href="https://kendo.cdn.telerik.com/{{ site.mvcCoreVersion }}/styles/kendo.bootstrap-v4.min.css" rel="stylesheet" type="text/css" />
129+
...
130+
</head>
119131

120-
<head>
121-
<meta charset="utf-8" />
122-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
123-
<title>@ViewData["Title"] - TelerikAspNetCoreApp</title>
132+
1. The Microsoft ASP.NET Core Web Application template comes with a jQuery script reference at the end of _Layout.cshtml file. Find the `jquery.min.js` script line in the `<body>` of the document and remove it.
133+
134+
1. Add the `jQuery` script hosted on the Telerik CDN:
124135

136+
<head>
137+
...
138+
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
139+
<link rel="stylesheet" href="~/css/site.css" />
125140
<link href="https://kendo.cdn.telerik.com/{{ site.mvcCoreVersion }}/styles/kendo.bootstrap-v4.min.css" rel="stylesheet" type="text/css" />
126141

142+
@* Add the the jQuery script from the Telerik CDN: *@
143+
<script src="https://kendo.cdn.telerik.com/{{ site.mvcCoreVersion }}/js/jquery.min.js"></script>
144+
...
145+
</head>
146+
147+
1. Add the Kendo UI scripts. The Kendo UI script files required by UI for ASP.NET Core must be loaded in the `<head>` tag after the `jQuery` script:
148+
149+
<head>
150+
...
151+
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
152+
<link rel="stylesheet" href="~/css/site.css" />
153+
<link href="https://kendo.cdn.telerik.com/{{ site.mvcCoreVersion }}/styles/kendo.bootstrap-v4.min.css" rel="stylesheet" type="text/css" />
127154
<script src="https://kendo.cdn.telerik.com/{{ site.mvcCoreVersion }}/js/jquery.min.js"></script>
155+
156+
@* Add the Kendo UI scripts: *@
128157
<script src="https://kendo.cdn.telerik.com/{{ site.mvcCoreVersion }}/js/kendo.all.min.js"></script>
129158
<script src="https://kendo.cdn.telerik.com/{{ site.mvcCoreVersion }}/js/kendo.aspnetmvc.min.js"></script>
130-
</head>
159+
</head>
131160

132-
1. Use a Kendo UI widget by adding the snippet from the following example to `~/Views/Home/Index.cshtml`.
161+
>**Note**
162+
>
163+
>* The `kendo.all.min.js` and `kendo.aspnetmvc.min.js` script must to be loaded after the `jquery.min.js` script.
164+
>* `jQuery` must be loaded only once. Make sure there are no duplicate references elsewhere in the _Layout.
165+
166+
## Add a Telerik UI Component
167+
168+
Utilize the Telerik UI DatePicker component by adding the snippet from the following example to `~/Views/Home/Index.cshtml`.
133169

134170
```tab-HtmlHelper
135171
<div class="text-center">
@@ -146,9 +182,11 @@ Note that when the Nuget Feed is added to Visual Studio through the Progress Tri
146182
</div>
147183
```
148184

149-
As a result, the following sample page is created.
185+
Now you are ready to run the web app.
186+
187+
Congratulations! You created a page that uses the [Telerik UI DatePicker]({% slug htmlhelpers_datepicker_aspnetcore %}).
150188

151-
![Sample page](../getting-started-core/images/sample-page.png)
189+
![Sample page](../getting-started-core/images/sample-page.png)
152190

153191
## Next Steps
154192

docs-aspnet/html-helpers/layout/form/razor-page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ See the implementation details in the example below, and for the full project wi
6464
xhr.setRequestHeader("RequestVerificationToken",
6565
$('input:hidden[name="__RequestVerificationToken"]').val());
6666
},
67-
data: form.serialize(),
67+
data: e.model, // The serialized model bound to the form
6868
dataType: 'json'
6969
});
7070
}

docs-aspnet/introduction.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ position: 1
1616

1717
Thank you for choosing Progress<sup>®</sup> Telerik<sup>®</sup> {{ site.product_short }}!
1818

19-
[{{ site.product }}](https://www.telerik.com/{{ telerik_product_url }}) is a set of server-side wrappers (HTML{% if site.core %} and Tag{% endif %} helpers) that allow you to use the Kendo UI widgets in .NET {{ site.framework_short }}. From a client-side point of view, the vanilla HTML/JavaScript Kendo UI widgets and their {{ site.framework }} helpers represent the same functionalities and provide the same capabilities.
19+
[{{ site.product }}](https://www.telerik.com/{{ telerik_product_url }}) is a set of server-side wrappers that bring the [HTML/JavaScript Kendo UI widgets](https://docs.telerik.com/kendo-ui/introduction) to .NET {{ site.framework_short }}. Our server-side wrappers come in the form of HTML{% if site.core %} and Tag{% endif %} helpers.
20+
From client-side perspective, the vanilla HTML/JavaScript Kendo UI widgets and their {{ site.framework }} server-side wrappers represent the same functionalities and provide the same capabilities.
2021

2122
The {{ site.product }} HTML{% if site.core %} and Tag{% endif %} helpers:
22-
* Allow you to configure a Kendo UI widget through the C# or VB.NET code&mdash;for example, to set its value, data source, and so on.
23-
* Render the HTML and JavaScript that are needed to initialize a Kendo UI widget whose options propagate to the client-side through its initialization script.
23+
* Allow you to configure a Kendo UI widget through C# or VB.NET code&mdash;for example, to set its value, data source, and so on.
24+
* Render the HTML and JavaScript that are needed to initialize a Kendo UI widget.
25+
* Propagate the widget’s options to the client-side through its initialization script.
2426

2527
To read more about the benefits of using {{ site.product }}, please visit the {% if site.core %}[product overview page](https://www.telerik.com/aspnet-core-ui){% else %}[product overview page](https://www.telerik.com/aspnet-mvc){% endif %}.
2628

docs/intro/first-steps.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ The following Chart configuration includes:
242242
* An [axis title](/api/javascript/dataviz/ui/chart/configuration/valueaxis.title#valueaxis.title) for the vertical axis.
243243
* [Tooltips](/api/javascript/dataviz/ui/chart/configuration/tooltip) on series hover.
244244

245+
```
245246
$("#ordersChart").kendoChart({
246247
dataSource: {
247248
data: [],
@@ -285,6 +286,7 @@ The following Chart configuration includes:
285286
template: "#= category #: #= value # t"
286287
}
287288
});
289+
```
288290

289291
## 9. Handling the Events
290292

@@ -315,7 +317,7 @@ including the widget instance that fired the event (`e.sender`).
315317
grid.unbind("dataBound");
316318
},
317319

318-
//height: 500,
320+
//height: 400,
319321
// ...
320322
//});
321323

docs/intro/installation/cdn-service.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ Only the official Kendo UI releases and serviced packs are uploaded to the CDN.
1818
> The http://cdn.kendostatic.com/ URL is still active but is no longer recommended for new projects.
1919
2020
The minified versions of all JavaScript files are available at the following locations:
21-
* `https://kendo.cdn.telerik.com/VERSION/js/FILENAME.min.js`
22-
* `https://kendo.cdn.telerik.com/VERSION/styles/FILENAME.min.css`
21+
* `http://kendo.cdn.telerik.com/VERSION/js/FILENAME.min.js`
22+
* `http://kendo.cdn.telerik.com/VERSION/styles/FILENAME.min.css`
2323

2424
For example, the `{{ site.cdnVersion }}` version can be loaded from the following locations:
25-
* `https://kendo.cdn.telerik.com/{{ site.cdnVersion }}/js/kendo.all.min.js`
26-
* `https://kendo.cdn.telerik.com/{{ site.cdnVersion }}/styles/kendo.common.min.css`
25+
* `http://kendo.cdn.telerik.com/{{ site.cdnVersion }}/js/kendo.all.min.js`
26+
* `http://kendo.cdn.telerik.com/{{ site.cdnVersion }}/styles/kendo.common.min.css`
2727

2828
The minified Kendo UI scripts are available as of the Kendo UI Q1 2014 SP1 release.
2929

30-
To load the scripts, use the `https://kendo.cdn.telerik.com/{{ site.cdnVersion }}/js/kendo.ui.core.min.js` URL.
30+
To load the scripts, use the `http://kendo.cdn.telerik.com/{{ site.cdnVersion }}/js/kendo.ui.core.min.js` URL.
3131

3232
## Using the HTTPS Protocol
3333

0 commit comments

Comments
 (0)