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
@@ -119,35 +119,38 @@ The following example demonstrates how to bind the max value of a Kendo UI Numer
119
119
max: 10
120
120
});
121
121
122
-
kendo.bind(document.body, viewModel);
122
+
kendo.bind(document.body, viewModel);
123
123
</script>
124
124
```
125
125
126
-
## Custom Binding in TypeScript
126
+
## Custom Widget Binding in TypeScript
127
127
128
-
The following example demonstrates how to bind the max value of a Kendo UI NumericTextBox by using the custom widget biding approach. As a result, the widget is updated when the View-Model changes.
128
+
The following example demonstrates how to use custom widget binding in TypeScript. It shows how to bind the max value of a Kendo UI NumericTextBox widget. As a result, the widget is updated when the View-Model changes.
@@ -160,77 +163,8 @@ The following example demonstrates how to bind the max value of a Kendo UI Numer
160
163
}
161
164
}
162
165
163
-
class ViewModel extends kendo.data.ObservableObject {
164
-
person = new NumericOptions();
165
-
166
-
constructor() {
167
-
super();
168
-
169
-
super.init(this);
170
-
}
171
-
}
172
-
173
-
$(function () {
174
-
var viewModel = new NumericOptions();
175
-
176
-
kendo.bind(document.body, viewModel);
177
-
178
-
});
179
-
```
180
-
181
-
## Custom Widget Binding in TypeScript
182
-
183
-
The following example demonstrates how to use custom widget binding in TypeScript. It shows how to bind the max value of a Kendo UI NumericTextBox widget. As a result, the widget is updated when the View-Model changes.
Copy file name to clipboardExpand all lines: docs/intro/installation/hosting-kendoui.md
+88-39Lines changed: 88 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,67 +1,118 @@
1
1
---
2
-
title: Hosting Kendo UI in Your Project
3
-
page_title: Hosting Kendo UI in Your Project | Download and Installation | Kendo UI for jQuery
2
+
title: Adding Kendo UI in Your Project
3
+
page_title: Adding Kendo UI in Your Project | Download and Installation | Kendo UI for jQuery
4
4
description: "Get started with Kendo UI for jQuery and learn how to host the library in your project by downloading the bundles and adding the CSS and JavaScript references."
5
5
slug: hosting_kendoui
6
6
position: 2
7
7
---
8
8
9
-
# Hosting Kendo UI in Your Project
9
+
# Adding Kendo UI in Your Project
10
10
11
-
To start using the Kendo UI for jQuery and host the library into your project, you need to [download the bundles](#downloading-the-bundles) and then [add the CSS and JavaScript references](#adding-css-and-javascript-references).
11
+
To start using the Kendo UI for jQuery and host the library into your project, you need to [download the bundles](#step-1-downloading-the-bundles) and then [add the CSS and JavaScript references](#step-2-referencing-the-needed-css-and-javascript-files-to-your-project).
12
12
13
-
## Downloading the Bundles
13
+
## Step 1: Downloading the Bundles
14
14
15
-
To download the Kendo UI bundles, go to [https://www.telerik.com/download/kendo-ui](https://www.telerik.com/download/kendo-ui). After the download is complete, your local repository will host the following folders:
15
+
To download a Kendo UI bundle, go to [https://www.telerik.com/download/kendo-ui](https://www.telerik.com/download/kendo-ui). When the download completes, here is what each folder inside the downloaded archive has:
16
16
17
17
|Folders |Contents |
18
18
|:--- |:--- |
19
19
|`/apptemplates`|The folder contains standalone starter templates. Although they are static HTML files, it is recommended that you open them through a web server instead of directly from the file system. The latter approach breaks all AJAX data requests.|
20
20
|`/examples`|Accommodates the quick-start demo files. Although they are static HTML files, it is recommended that you open them through a web server instead of directly from the file system. The latter approach breaks all AJAX data requests.|
21
-
|`/js`|Contains the minified JavaScript files.|
21
+
|`/js`|Contains the minified JavaScript files needed by Kendo UI to operates.|
22
+
|`/license-agreements`|Contains the End User License Agreement that has to be read before installing Kendo UI.|
22
23
|`/src`|This folder used to hold the source code files but they are now provided in a separate download package. Access the source code package from the [Downloads section](https://www.telerik.com/account/my-downloads) of your account. Note that the source code is not available to trial users.|
23
-
|`/styles`|Consists of the minified CSS files and theme images. The folder also includes the Less files, which can be passed to the compiler, located on the first-level folders inside `styles/folder: styles/web/` and `styles/mobile/`. Note that the Less files are not available to trial users.|
24
-
|`/wrappers`|Includes the server-side wrappers. As it is necessary for the UI for ASP.NET MVC, UI for JSP or UI for PHP distributions only, the folder is available in the commercial packages of these versions.|
24
+
|`/styles`| This folder contains the definitions of all [SASS](https://docs.telerik.com/kendo-ui/styles-and-layout/sass-themes) and [LESS](https://docs.telerik.com/kendo-ui/styles-and-layout/appearance-styling)-based themes that Kendo UI provides. |
25
+
|`/typescript`|Includes the Kendo UI [TypeScript definitions](https://docs.telerik.com/kendo-ui/third-party/typescript)|
26
+
|`/vsdoc`|Includes the files that provide the intellisense |
25
27
|`changelog.html`|Provides the Kendo UI release notes.|
26
28
27
-
## Adding CSS and JavaScript References
29
+
To download the commercial version of Kendo UI go to www.telerik.comand login with your credentials. Navigate to the [Downloads section](https://www.telerik.com/account/my-downloads) of your account. Search for Progress® Kendo UI® for jQuery and download the package.
28
30
29
-
To include the required CSS and JavaScript files:
31
+
Based on the preferred technologies, there are also other approaches you can use to add Kendo UI to a project. Here you can find more details about each of them:
32
+
*[Installing Kendo UI by Using the CDN Services]({% slug kendoui_cdn_services_installation %})
33
+
*[Installing Kendo UI with NPM]({% slug kendoui_npm_packages_kendoui_installation %})
34
+
*[Installing Kendo UI with NuGet]({% slug kendoui_nuget_packages %})
35
+
36
+
## Step 2: Referencing the needed CSS and JavaScript files to your project
37
+
38
+
To include the required by Kendo UI CSS and JavaScript files first extract the `/js` and `/styles` directories from the downloaded bundle archive. Copy the extracted folders in the root folder of your project. The next step is to include the Kendo UI JavaScript and CSS files in the `head` tag of your main HTML file. As the SASS and LESS-based themes structure is different, below you find two sections discussing the loading of each theme type.
39
+
40
+
### Including SASS-based themes to your project
41
+
42
+
Each SASS-based theme is represented by a single CSS file that combines the layout and the styling of the different components. Thus only one CSS file has to be referenced in the project.
43
+
44
+
The CSS files defining the different Kendo UI SASS themes are as follows:
<!-- (Optional) Reference to the RTL(Right-To-Left) CSS file that changes the direction of all Kendo UI widgets. Include this file only if your project will be with Right-To-Left webpage direction. -->
<!-- Reference to the jQuery library. It is important tha the jQuery file is loaded before the JavaScript file of Kendo UI -->
62
+
<script src="js/jquery.min.js"></script>
63
+
64
+
<!-- Reference to the Kendo UI JavaScript file -->
65
+
<script src="js/kendo.all.min.js"></script>
66
+
</head>
67
+
<body>
68
+
Hello World!
69
+
</body>
70
+
</html>
71
+
72
+
### Including LESS-based themes to your project
73
+
To load a LESS-based theme to a project at least two CSS files should be referenced in it.
74
+
* kendo.common.css — This is a common (base) stylesheet. It applies styles related to element positioning and widget dimensions. It is a must for the widgets to look and function properly.
75
+
76
+
> Some LESS themes require the loading of different "kendo.common.css" file. More details about these themes can be found [here](https://docs.telerik.com/kendo-ui/styles-and-layout/appearance-styling#common-css-files).
77
+
78
+
* kendo.[theme name].css — This stylesheet applies theme-specific styles such as color palette, background gradients, and patterns, etc.
79
+
80
+
More about the different LESS themes can be read [here](https://docs.telerik.com/kendo-ui/styles-and-layout/appearance-styling).
30
81
31
-
1. Extract the `/js` and `/styles` directories from the bundle archive and copy them to your web application root directory.
32
-
1. Include the Kendo UI JavaScript and CSS files in the `head` tag of your HTML document. Verify that the common CSS file is registered before the theme CSS file.
82
+
Here is how we can define a Kendo UI project that uses the Kendo UI Default(LESS) theme:
33
83
34
-
<!DOCTYPE html>
35
-
<html>
36
-
<head>
37
-
<title>Welcome to Kendo UI!</title>
38
-
<!-- Common Kendo UI CSS for web widgets and widgets for data visualization. -->
<!-- (Optional) Reference to the RTL(Right-To-Left) CSS file that changes the direction of all Kendo UI widgets. Include this file only if your project will be with Right-To-Left webpage direction. -->
0 commit comments