Skip to content

Commit b4285d7

Browse files
committed
Sync with Kendo UI Professional
1 parent de5a3e4 commit b4285d7

File tree

80 files changed

+287
-673
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+287
-673
lines changed

.eslintrc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,21 @@
110110
"assertEvent": true,
111111
"roughlyEqual": true
112112
}
113+
},
114+
{
115+
"files": ["tests-next/**/*.js"],
116+
"globals": {
117+
"$": true,
118+
"Mocha": true,
119+
"describe": true,
120+
"beforeEach": true,
121+
"afterEach": true,
122+
"it": true,
123+
"assert": true,
124+
"axeRunFixture": true,
125+
"axeRun": true,
126+
"vi": true
127+
}
113128
}
114129
]
115130
}

docs-aspnet/backwards-compatibility/2024-backwards-compatibility.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,24 @@ position: 1
99
# 2024 Releases
1010

1111
This article lists the breaking or important changes in the 2024 releases of {{ site.product }}.
12-
{% if site.core %}
12+
1313
## {{ site.product }} Q4 2024
1414

15+
### Kendo UI Themes
16+
17+
For a while, the [CSS Utilities](https://www.telerik.com/design-system/docs/utils/get-started/introduction/) were bundled with the Kendo UI themes. Starting with version Q4 2024, the CSS Utilities are no longer included in the [Kendo UI themes]({% slug sassbasedthemes_overview %}).
18+
The Kendo UI theme stylesheet still contains all the necessary styles. However, in case you need to create an additional layout, dependent on the utility classes, you need to include the additional stylesheet `kendo-theme-utils.css`, which is available in the `styles` folder of the {{ site.product }} distribution and through the Kendo CDN service.
19+
20+
```LocalFiles
21+
<link rel="stylesheet" href="~/lib/kendo/styles/default-ocean-blue.css" />
22+
<link rel="stylesheet" href="~/lib/kendo/styles/kendo-theme-utils.css" />
23+
```
24+
```CDN
25+
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/themes/{{ site.themesCdnVersion }}/default/default-ocean-blue.css" />
26+
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/themes/{{ site.themesCdnVersion }}/utils/all.css"/>
27+
```
28+
29+
{% if site.core %}
1530
### Checkbox
1631

1732
The `Rounded` configuration for the HTML Helpers now expects [`Kendo.Mvc.UI.Rounded`](https://docs.telerik.com/aspnet-core/api/kendo.mvc.ui/rounded) enum instead of [`Kendo.Mvc.UI.BasicRounded`](https://docs.telerik.com/aspnet-core/api/kendo.mvc.ui/basicrounded), exposing an additional `Full` option.

docs-aspnet/html-helpers/data-management/grid/faq.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,37 @@ To validate a number by using the Kendo UI NumericTextBox:
858858
public decimal Price { get; set; }
859859
}
860860
861+
## How can I distinguish between Add and Edit mode?
862+
863+
To distinguish between the insert and update modes, you can use the `isNew` method in combination with the edit event handler of the grid:
864+
[Grid Edit Event](http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-edit)
865+
866+
Here is a basic sample for reference:
867+
868+
```HtmlHelper
869+
// Omitted for brevity.
870+
.Events(events => events.Edit("onEdit"))
871+
```
872+
{% if site.core %}
873+
```TagHelper
874+
<kendo-grid on-edit="onEdit">
875+
// Omitted for brevity.
876+
</kendo-grid>
877+
```
878+
{% endif %}
879+
```js
880+
function onEdit(args) {
881+
if (args.model.isNew() == false) {
882+
// textbox
883+
$("#ShipName").attr("readonly", true);
884+
885+
// dropdownlist
886+
var kendoDdl = $("#ShipCountry").data("kendoDropDownList");
887+
kendoDdl.readonly(true);
888+
}
889+
}
890+
```
891+
861892
## See Also
862893

863894
* [Basic Usage of the Grid HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/grid)

docs-aspnet/html-helpers/navigation/treeview/binding.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ public static IList<HierarchicalViewModel> GetHierarchicalData()
219219
{
220220
var result = new List<HierarchicalViewModel>()
221221
{
222-
new HierarchicalViewModel() { ID = 1, ParendID = null, HasChildren = true, Name = "Parent item" },
223-
new HierarchicalViewModel() { ID = 2, ParendID = 1, HasChildren = true, Name = "Parent item" },
224-
new HierarchicalViewModel() { ID = 3, ParendID = 1, HasChildren = false, Name = "Item" },
225-
new HierarchicalViewModel() { ID = 4, ParendID = 2, HasChildren = false, Name = "Item" },
226-
new HierarchicalViewModel() { ID = 5, ParendID = 2, HasChildren = false, Name = "Item" }
222+
new HierarchicalViewModel() { ID = 1, ParentID = null, HasChildren = true, Name = "Parent item" },
223+
new HierarchicalViewModel() { ID = 2, ParentID = 1, HasChildren = true, Name = "Parent item" },
224+
new HierarchicalViewModel() { ID = 3, ParentID = 1, HasChildren = false, Name = "Item" },
225+
new HierarchicalViewModel() { ID = 4, ParentID = 2, HasChildren = false, Name = "Item" },
226+
new HierarchicalViewModel() { ID = 5, ParentID = 2, HasChildren = false, Name = "Item" }
227227
};
228228
229229
return result;
@@ -232,7 +232,7 @@ public static IList<HierarchicalViewModel> GetHierarchicalData()
232232
public ActionResult Read_TreeViewData(int? id)
233233
{
234234
var result = GetHierarchicalData()
235-
.Where(x => id.HasValue ? x.ParendID == id : x.ParendID == null)
235+
.Where(x => id.HasValue ? x.ParentID == id : x.ParentID == null)
236236
.Select(item => new {
237237
id = item.ID,
238238
Name = item.Name,

docs-aspnet/knowledge-base/custom-column-popup-editor.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,17 @@ For the complete implementation of the suggested approach, refer to the followin
121121
* [{{ site.framework }} Grid Demos](https://demos.telerik.com/{{ site.platform }}/grid/index)
122122

123123
{% if site.core %}
124+
* [{{ site.framework }} Grid Custom PopUp Editor Example](https://github.com/telerik/ui-for-aspnet-core-examples/blob/master/Telerik.Examples.Mvc/Telerik.Examples.Mvc/Views/Grid/CustomPopUpEditor.cshtml)
125+
124126
* [{{ site.framework }} Grid Product Page](https://www.telerik.com/aspnet-core-ui/grid)
125127

126128
* [Telerik UI for {{ site.framework }} Video Onboarding Course (Free for trial users and license holders)]({%slug virtualclass_uiforcore%})
127129

128130
* [Telerik UI for {{ site.framework }} Forums](https://www.telerik.com/forums/aspnet-core-ui)
129131

130132
{% else %}
133+
* [{{ site.framework }} Grid Custom PopUp Editor Example](https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/Telerik.Examples.Mvc/Telerik.Examples.Mvc/Areas/GridEditingCustomPopupEditor)
134+
131135
* [{{ site.framework }} Grid Product Page](https://www.telerik.com/aspnet-mvc/grid)
132136

133137
* [Telerik UI for {{ site.framework }} Video Onboarding Course (Free for trial users and license holders)]({%slug virtualclass_uiformvc%})

docs-aspnet/styles-and-layout/sass-themes/customization.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,4 +575,13 @@ The following example demonstrates how to configure the Toolbar.
575575
</td>
576576
<td>The vertical padding of the container.
577577
</td>
578-
</tr>
578+
</tr>
579+
580+
## Using CSS Utilities
581+
582+
The CSS Utilities allows you to create the desired layout using a collection of CSS classes. Each utility class changes the appearance of the target element by applying a specific CSS rule. For more information on the Telerik UI CSS Utilities and how to install the package, [refer to the CSS Utilities documentation](https://www.telerik.com/design-system/docs/utils/get-started/introduction/).
583+
584+
## See Also
585+
586+
* [SASS Themes Installation]({% slug sassbasedthemes_installation %})
587+
* [SASS Themes Browser Support]({% slug sass_browser_support %})

docs-aspnet/styles-and-layout/sass-themes/installation.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ position: 2
1010

1111
To get the Sass-based Kendo UI themes for {{ site.framework }}, you can:
1212

13-
* [Use the pre-built CSS files](#using-the-pre-built-css).
14-
* [Use the Kendo UI CDN](#using-the-kendo-ui-cdn).
15-
* [Use the NPM packages](#using-npm-packages).
13+
* [Use the pre-built CSS files](#using-the-pre-built-css)
14+
* [Use the Kendo UI CDN](#using-the-kendo-ui-cdn)
15+
* [Use the NPM packages](#using-npm-packages)
16+
* [Use the build process of the application](#using-the-build-process-of-the-application)
1617

1718
## Using Pre-Built CSS
1819

@@ -51,11 +52,6 @@ To access the Progress NPM registry, you need an active Telerik account with an
5152

5253
[This article](https://docs.telerik.com/kendo-ui/styles-and-layout/sass-themes/customization#using-the-build-process-of-the-application) is representing the approach of how to customize a Sass-based theme and consume the theme package.
5354

54-
{% if site.core %}
55-
## [Adding Client-Side Resources through LibMan](https://docs.telerik.com/aspnet-core/installation/adding-client-side-resources/using-libman#adding-client-side-resources-through-libman)
56-
57-
{% endif %}
58-
5955
## See Also
6056

6157
* [Sass themes overview]({% slug sassbasedthemes_overview %})

docs/api/javascript/ui/grid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11932,7 +11932,7 @@ Switches the table row which is in edit mode and saves any changes made by the u
1193211932

1193311933
### scrollToItem
1193411934

11935-
Scrolls the table to the proided item.
11935+
Scrolls the table to the provided item.
1193611936

1193711937
#### Parameters
1193811938

src/colorpicker/colorgradient.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import "../kendo.core.js";
22
import "../kendo.popup.js";
3+
import "../kendo.slider.js";
4+
import "../kendo.binder.js";
35
import "./contrastToolUtils.js";
46
import "../kendo.icons.js";
57

6-
var __meta__ = {
7-
id: "colorgradient",
8-
name: "ColorGradient",
9-
category: "web", // suite
10-
description: "ColorGradient allows selection of a color from an HSV canvas.",
11-
depends: ["core", "popup", "textbox", "icons"] // dependencies
12-
};
138
(function($, undefined) {
149
// WARNING: removing the following jshint declaration and turning
1510
// == into === to make JSHint happy will break functionality.

src/colorpicker/colorselector.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import "../kendo.core.js";
2+
import "../kendo.popup.js";
3+
import "../kendo.color.js";
24

35
(function($, undefined) {
46
// WARNING: removing the following jshint declaration and turning

0 commit comments

Comments
 (0)