Skip to content

Commit 08e90ec

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent 043f764 commit 08e90ec

30 files changed

+761
-552
lines changed

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

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,61 @@ position: 1
88

99
# 2020 Releases
1010

11+
## {{ site.product }} R3 2020 SP1
12+
13+
**Upload**
14+
15+
Changed appearance in `Less-based themes` of the Upload action buttons that are rendered when the `Async.AutoUpload` option is set to `false`.
16+
17+
Reverting to the previous appearance is possible by utilizing the following styles:
18+
19+
```
20+
<style>
21+
.k-upload .k-action-buttons {
22+
padding: 0;
23+
align-items: stretch;
24+
border-bottom-right-radius: 0;
25+
border-bottom-left-radius: 0;
26+
border-width: 1px 0 0;
27+
border-top-width: 1px;
28+
border-style: solid;
29+
display: flex;
30+
flex-direction: row;
31+
flex-shrink: 0;
32+
flex-basis: auto;
33+
overflow: hidden;
34+
border-color: transparent;
35+
}
36+
37+
.k-upload .k-action-buttons .k-button {
38+
background-clip: border-box;
39+
border-radius: 0;
40+
margin: 0;
41+
padding: 12px 16px;
42+
border-width: 0;
43+
text-overflow: ellipsis;
44+
flex: 1 0 0%;
45+
flex-grow: 1;
46+
flex-grow: 1;
47+
display: inline-block;
48+
overflow: hidden;
49+
width: auto;
50+
max-width: 100%;
51+
}
52+
</style>
53+
54+
55+
@(Html.Kendo().Upload()
56+
.Name("files")
57+
.Async(a => a
58+
.Save("Async_Save", "Upload")
59+
.Remove("Async_Remove", "Upload")
60+
.AutoUpload(false)
61+
)
62+
)
63+
64+
```
65+
1166
## {{ site.product }} R3 2020
1267

1368
**Badge**
@@ -48,7 +103,7 @@ Deprecated configuration options and methods:
48103
</tr>
49104
<tr>
50105
<td>client-side API method<code>value()</code></td><td>client-side API method<code>text()</code></td>
51-
</tr>
106+
</tr>
52107
</tbody>
53108
</table>
54109

544 Bytes
Loading

docs-aspnet/getting-started-mvc/vs-integration/new-project-wizard.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ To start the **Create New Project Wizard**, follow either of the approaches belo
2929

3030
For convenience, the same project templates are located under the **Visual C#** > **Web** and **Visual Basic** > **Web** nodes.
3131

32+
You will receive a list of predefined Telerik templates and the Telerik ASP.NET MVC versions list to choose from:
33+
* **Blank Template** - It lets you develop your application from scratch with the Telerik UI components enabled.
34+
* **Standard Template** - You can start off with three example pages which have Panel Bar, Card and TabStrip components integrated.
35+
* **Grid and Menu Template** - A small application that contains Grid, Menu and Buttons as a base for your application.
36+
* **Dashboard Template** - It allows you to quickly develop dashboards and dashboard-like applications using the built-in TileLayout component.
37+
3238
The wizard detects all the installed versions of Telerik UI for ASP.NET MVC and lists them in the **Version** combobox. This enables you to select a version you want to apply to your project.
3339

3440
![The new Project Wizard](../../getting-started-mvc/vs-integration/images/new_project.png)

docs/api/javascript/ui/grid.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2652,7 +2652,7 @@ Can be set to a JavaScript object which represents the column menu configuration
26522652

26532653
> Check [Column menu](https://demos.telerik.com/kendo-ui/grid/column-menu) for a live demo.
26542654
2655-
### columnMenu.columns `Boolean` *(default: true)*
2655+
### columnMenu.columns `Boolean|Object` *(default: true)*
26562656

26572657
If set to `true` the column menu would allow the user to select (show and hide) grid columns. By default the column menu allows column selection.
26582658

@@ -2676,6 +2676,15 @@ If set to `true` the column menu would allow the user to select (show and hide)
26762676
});
26772677
</script>
26782678

2679+
### columnMenu.columns.sort `String` *(default: null)*
2680+
2681+
The sort order which will be applied over the columns list. By default, the columns menu items are in the same order as the columns in the grid.
2682+
2683+
The supported values are:
2684+
2685+
* `"asc"` (ascending order)
2686+
* `"desc"` (descending order)
2687+
26792688
### columnMenu.filterable `Boolean` *(default: true)*
26802689

26812690
If set to `true` the column menu would allow the user to filter the grid. By default the column menu allows the user to filter if filtering is enabled via the [filterable](filterable).
@@ -3655,6 +3664,10 @@ For more information, please refer to the [Window configuration API](/api/javasc
36553664
});
36563665
</script>
36573666

3667+
### encodeTitles `Boolean` *(default: false)*
3668+
3669+
If set to `true` the column title will be HTML-encoded before it is displayed. If set to `false` the column title will be displayed as is.
3670+
36583671
### excel `Object`
36593672

36603673
Configures the Kendo UI Grid Excel export settings.

docs/backwards-compatibility/2020-backward-compatibility.md

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,62 @@ position: 1
1010

1111
This article lists the breaking changes in the Kendo UI 2020 releases.
1212

13+
## Kendo UI 2020 R3 SP1
14+
15+
**Upload**
16+
17+
Changed appearance in `Less-based themes` of the Upload action buttons that are rendered when the [async.autoUpload option](https://docs.telerik.com/kendo-ui/api/javascript/ui/upload/configuration/async.autoupload) is set to `false`.
18+
19+
Reverting to the previous appearance is possible by utilizing the following styles:
20+
21+
```
22+
<style>
23+
.k-upload .k-action-buttons {
24+
padding: 0;
25+
align-items: stretch;
26+
border-bottom-right-radius: 0;
27+
border-bottom-left-radius: 0;
28+
border-width: 1px 0 0;
29+
border-top-width: 1px;
30+
border-style: solid;
31+
display: flex;
32+
flex-direction: row;
33+
flex-shrink: 0;
34+
flex-basis: auto;
35+
overflow: hidden;
36+
border-color: transparent;
37+
}
38+
39+
.k-upload .k-action-buttons .k-button {
40+
background-clip: border-box;
41+
border-radius: 0;
42+
margin: 0;
43+
padding: 12px 16px;
44+
border-width: 0;
45+
text-overflow: ellipsis;
46+
flex: 1 0 0%;
47+
flex-grow: 1;
48+
flex-grow: 1;
49+
display: inline-block;
50+
overflow: hidden;
51+
width: auto;
52+
max-width: 100%;
53+
}
54+
</style>
55+
56+
<input type="file" name="files" id="photos" />
57+
58+
<script>
59+
$("#photos").kendoUpload({
60+
async: {
61+
saveUrl: "http://my-app.localhost/save",
62+
removeUrl: "http://my-app.localhost/remove",
63+
autoUpload: false
64+
}
65+
});
66+
</script>
67+
```
68+
1369
## Kendo UI 2020 R3
1470

1571
**Badge**
@@ -49,7 +105,7 @@ Deprecated configuration options and methods:
49105
</tr>
50106
<tr>
51107
<td><code>value()</code></td><td><code>text()</code></td>
52-
</tr>
108+
</tr>
53109
</tbody>
54110
</table>
55111

src/kendo.calendar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,7 +1977,7 @@ var __meta__ = { // jshint ignore:line
19771977

19781978
if (dates[0] instanceof DATE) {
19791979
disabledDates = convertDatesArray(dates);
1980-
body = "var found = date && window.kendo.jQuery.inArray(date.setHours(0, 0, 0, 0),["+ disabledDates +"]) > -1;" + searchExpression;
1980+
body = "var clonedDate = new Date(date); var found = date && window.kendo.jQuery.inArray(clonedDate.setHours(0, 0, 0, 0),["+ disabledDates +"]) > -1;" + searchExpression;
19811981
} else {
19821982
for (var i = 0; i < dates.length; i++) {
19831983
var day = dates[i].slice(0,2).toLowerCase();
@@ -1986,7 +1986,7 @@ var __meta__ = { // jshint ignore:line
19861986
disabledDates.push(index);
19871987
}
19881988
}
1989-
body = "var found = date && window.kendo.jQuery.inArray(date.getDay(),["+ disabledDates +"]) > -1;" + searchExpression;
1989+
body = "var clonedDate = new Date(date); var found = date && window.kendo.jQuery.inArray(clonedDate.getDay(),["+ disabledDates +"]) > -1;" + searchExpression;
19901990
}
19911991

19921992
callback = new Function("date", body); //jshint ignore:line

src/kendo.dateinput.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,12 +619,13 @@ var __meta__ = { // jshint ignore:line
619619
return true;
620620
}
621621
var newValue = new Date((value && value.getTime) ? value.getTime() : value);
622+
var lastDateOfMonth = new Date(newValue.getFullYear(), newValue.getMonth() + 1, 0).getDate();
622623
var newHours;
623624
switch (symbol) {
624625
case "d":
625626
var newDate = (date ? newValue.getDate() * 10 : 0) + parseInt(currentChar, 10);
626627
if (isNaN(newDate)) { return; }
627-
while (newDate > 31) {
628+
while (newDate > lastDateOfMonth) {
628629
newDate = parseInt(newDate.toString().slice(1), 10);
629630
}
630631
if (newDate < 1) {

src/kendo.numerictextbox.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ var __meta__ = { // jshint ignore:line
123123

124124
that.value(value);
125125

126-
disabled = element.is("[disabled]") || $(that.element).parents("fieldset").is(':disabled');
126+
disabled = !options.enable || element.is("[disabled]") || $(that.element).parents("fieldset").is(':disabled');
127127

128128
if (disabled) {
129129
that.enable(false);
@@ -145,6 +145,7 @@ var __meta__ = { // jshint ignore:line
145145
options: {
146146
name: "NumericTextBox",
147147
decimals: NULL,
148+
enable: true,
148149
restrictDecimals: false,
149150
min: NULL,
150151
max: NULL,
@@ -587,7 +588,7 @@ var __meta__ = { // jshint ignore:line
587588
var numberFormat = this._format(this.options.format);
588589
var decimalSeparator = numberFormat[POINT];
589590
var minInvalid = (min !== null && min >= 0 && value.charAt(0) === "-");
590-
591+
591592
if (this._numPadDot && decimalSeparator !== POINT) {
592593
value = value.replace(POINT, decimalSeparator);
593594
this.element.val(value);

src/kendo.panelbar.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ var __meta__ = { // jshint ignore:line
240240
.on("blur" + NS, function() {
241241
that._current(null);
242242
})
243-
.attr("role", "menu");
243+
.attr("role", "tree");
244244

245245
content = element.find("li." + ACTIVECLASS + " > ." + CONTENT);
246246

@@ -362,7 +362,7 @@ var __meta__ = { // jshint ignore:line
362362

363363
that.templates = {
364364
content: template(
365-
"<div role='region' class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"
365+
"<div class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"
366366
),
367367
group: template(
368368
"<ul role='group' aria-hidden='#= ariaHidden(group) #' class='#= groupCssClass(group) #'#= groupAttributes(group) #>" +
@@ -390,7 +390,7 @@ var __meta__ = { // jshint ignore:line
390390
),
391391

392392
item: template(
393-
"<li role='menuitem' #=aria(item)#class='#= wrapperCssClass(group, item) #'" +
393+
"<li role='treeitem' #=aria(item)#class='#= wrapperCssClass(group, item) #'" +
394394
kendo.attr("uid") + "='#= item.uid #'>" +
395395
"#= itemWrapper(data) #" +
396396
"# if (item.items && item.items.length > 0) { #" +
@@ -1329,7 +1329,7 @@ var __meta__ = { // jshint ignore:line
13291329
root = this.element[0],
13301330
wrapElement, link;
13311331

1332-
item = $(item).addClass("k-item").attr("role", "menuitem");
1332+
item = $(item).addClass("k-item").attr("role", "treeitem");
13331333

13341334
if (kendo.support.browser.msie) { // IE10 doesn't apply list-style: none on invisible items otherwise.
13351335
item.css("list-style-position", "inside")
@@ -1364,7 +1364,6 @@ var __meta__ = { // jshint ignore:line
13641364
item
13651365
.children("div")
13661366
.addClass(CONTENT)
1367-
.attr("role", "region")
13681367
.attr(ARIA_HIDDEN, true)
13691368
.hide()
13701369
.parent()

0 commit comments

Comments
 (0)