Skip to content

Commit 404e380

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent c390dc1 commit 404e380

File tree

63 files changed

+7027
-114
lines changed

Some content is hidden

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

63 files changed

+7027
-114
lines changed

docs-aspnet/_config-mvc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ defaults:
202202
path: "html-helpers/data-management/pivotgrid"
203203
values:
204204
title_prefix: "ASP.NET MVC PivotGrid Component"
205+
-
206+
scope:
207+
path: "html-helpers/data-management/taskboard"
208+
values:
209+
title_prefix: "ASP.NET MVC TaskBoard Component"
205210
-
206211
scope:
207212
path: "html-helpers/data-management/spreadsheet"

docs-aspnet/_config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ navigation:
214214
title: "Grid"
215215
"tag-helpers/data-management/pivotgrid":
216216
title: "PivotGrid"
217+
"tag-helpers/data-management/taskboard":
218+
title: "TaskBoard"
217219
"tag-helpers/editors":
218220
title: "Editors"
219221
"tag-helpers/editors/imageeditor":
@@ -287,6 +289,8 @@ navigation:
287289
"html-helpers/data-management/grid/performance":
288290
title: "Performance Tips"
289291
position: 17
292+
"html-helpers/data-management/taskboard":
293+
title: "TaskBoard"
290294
"html-helpers/data-management/treelist/editing":
291295
title: "Editing"
292296
position: 3
@@ -586,6 +590,8 @@ navigation:
586590
title: "StockChart"
587591
"*tabstrip":
588592
title: "TabStrip"
593+
"*taskboard":
594+
title: "TaskBoard"
589595
"*textarea":
590596
title: "TextArea"
591597
isNew: true
@@ -853,6 +859,11 @@ defaults:
853859
path: "html-helpers/editors/switch"
854860
values:
855861
title_prefix: "ASP.NET Core Switch Component"
862+
-
863+
scope:
864+
path: "html-helpers/data-management/taskboard"
865+
values:
866+
title_prefix: "ASP.NET Core TaskBoard Component"
856867
-
857868
scope:
858869
path: "html-helpers/editors/textarea"
@@ -1283,6 +1294,11 @@ defaults:
12831294
path: "tag-helpers/editors/switch"
12841295
values:
12851296
title_prefix: "ASP.NET Core Switch Component"
1297+
-
1298+
scope:
1299+
path: "tag-helpers/data-management/taskboard"
1300+
values:
1301+
title_prefix: "ASP.NET Core TaskBoard Component"
12861302
-
12871303
scope:
12881304
path: "tag-helpers/editors/textarea"

docs-aspnet/_tools/check-redirects.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ err_count=0
1010

1111
# List of URLs to check: <from> <to>
1212
urls="
13-
/kendo-ui/api/wrappers/jsp /kendo-ui/api/jsp/alert
13+
/kendo-ui/api/wrappers/jsp /kendo-ui/api/jsp/actionSheet
1414
/kendo-ui/api/web/grid /kendo-ui/api/javascript/ui/grid
1515
/kendo-ui/api/mobile/application /kendo-ui/api/javascript/mobile/application
1616
/kendo-ui/api/mobile/scrollview /kendo-ui/api/javascript/mobile/ui/scrollview

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,20 @@ title: 2021 Releases
33
page_title: 2020 Releases
44
description: "Learn about the breaking changes and backwards compatibility released by {{ site.product }} in 2021."
55
slug: breakingchanges_2021
6-
position: 2
6+
position: 1
77
---
88

99
# 2021 Releases
1010

11-
This article lists the breaking changes in the 2021 releases of Kendo UI for {{ site.product }}.
11+
This article lists the breaking or important changes in the 2021 releases of Kendo UI.
12+
13+
## {{ site.product }} R2 2021
14+
15+
> Important change
16+
17+
**Scheduler**
18+
19+
As of the 2021 R2 release the events that are 24 hours or longer and do not have their `isAllDay` field set to `true` will be rendered in the regular (non all day) slots. In the previous versions such events were rendered in the allDaySlot. With the introduced change the `allDaySlot` will display only those events that have their `isAllDay` field set to `true`.
1220

1321
## {{ site.product }} R1 2021
1422

9 KB
Loading
7.76 KB
Loading
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: QR Code Types
3+
page_title: QR Code Types
4+
description: "Try the different types of Telerik UI QRCode HtmlHelper for {{ site.framework }}."
5+
previous_url: /helpers/barcodes/qrcode/overview
6+
slug: types_qrcodehelper_aspnetcore
7+
position: 3
8+
---
9+
10+
Kendo UI QR Code supports different types of overlay.
11+
12+
# Swiss QR Type
13+
14+
The QRCode component supports the [Swiss QR Code format](https://blog.xsuite.com/en/swiss-qr-code). Enabling the `Swiss` Type of the overlay will add a swiss cross in the QR Code.
15+
16+
The following implementation demonstrates the code needed for the Swiss Type:
17+
18+
19+
```View
20+
@(Html.Kendo().QRCode()
21+
.Name("qrSwiss")
22+
.Value("SPC 0200 1 CH4431999123000889012 S Robert Schneider AG Rue du Lac 1268 2501 Biel CH 1949.75 CHF S Pia-Maria Rutschmann-Schnyder Grosse Marktgasse 28 9400 Rorschach CH QRR 210000000003139471430009017 Order of 15 June 2020 EPD //S1/10/10201409/11/200701/20/140.000-53/30/102673831/31/200615/32/7.7/33/7.7:139.40/40/0:30 Name AV1: UV;UltraPay005;12345 Name AV2: XY;XYService;54321")
23+
.Overlay(o => o.Type("swiss").Width(26).Height(26))
24+
.Size(173)
25+
)
26+
27+
```
28+
Overview of the Swiss Type:
29+
30+
![Swiss Type](images/swissType.png)
31+
32+
* [Demo showing Swiss QR Code format](https://demos.telerik.com/{{ site.platform }}/qrcode/swiss)
33+
34+
# QRCode Image Type
35+
36+
The image type of the overlay is adding an image in the QR Code.
37+
38+
The following implementation demonstrates the code needed for the Image Type:
39+
40+
```View
41+
@(Html.Kendo().QRCode()
42+
.Name("qrImage")
43+
.Value("SPC 0200 1 CH4431999123000889012 S Robert Schneider AG Rue du Lac 1268 2501 Biel CH 1949.75 CHF S Pia-Maria Rutschmann-Schnyder Grosse Marktgasse 28 9400 Rorschach CH QRR 210000000003139471430009017 Order of 15 June 2020 EPD //S1/10/10201409/11/200701/20/140.000-53/30/102673831/31/200615/32/7.7/33/7.7:139.40/40/0:30 Name AV1: UV;UltraPay005;12345 Name AV2: XY;XYService;54321")
44+
.Overlay(o => o.ImageUrl("https://demos.telerik.com/kendo-ui/content/shared/images/site/kendoka-cta.svg").Height(50).Width(50))
45+
.Size(173)
46+
)
47+
48+
```
49+
Overview of the Image Type:
50+
51+
![Image Type](images/imageType.png)
52+
53+
* [Demo of QRCode with image](https://demos.telerik.com/{{ site.platform }}/qrcode/image)
54+
55+
56+
57+
## See Also
58+
59+
* [Basic Usage of the QRCode HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/qrcode/index)
60+
* [Using the API of the QRCode HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/qrcode/api)
61+
* [Server-Side API](/api/qrcode)
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: Keyboard Navigation
3+
page_title: Keyboard Navigation
4+
description: "Get started with the Telerik UI for {{ site.framework }} TaskBoard and learn about the accessibility support it provides through its keyboard navigation functionality."
5+
slug: htmlhelpers_taskboard_aspnetcore_keynav
6+
position: 2
7+
---
8+
9+
# Keyboard Navigation
10+
11+
The keyboard navigation of the TaskBoard is always available.
12+
13+
The {{ site.framework }} TaskBoard supports the following keyboard shortcuts:
14+
15+
| SHORTCUT | DESCRIPTION |
16+
|:--- |:--- |
17+
| `Tab` | navigates to the TaskBoard|
18+
| `Left Arrow` | focuses the previous column or a card in the previous column|
19+
| `Right Arrow` | focuses the next column or a card in the next column|
20+
| `Up Arrow` | focuses the previous card|
21+
| `Down Arrow` | focuses the next card|
22+
| `Enter` | selects the focused card|
23+
| `Delete` | deletes the focused card|
24+
| `Ctrl`+`e` | puts the focused card or column in edit mode|
25+
| `Ctrl`+`a` | adds a new column or card|
26+
27+
For a complete example, refer to the [TaskBoard Keyboard Navigation (Demo)](https://demos.telerik.com/{{ site.platform }}/taskboard/keyboard-navigation).
28+
29+
## Register Shortcut
30+
31+
Additional shortcuts can be registered in the TaskBoard, with the `registerShortcut` client-side API method.
32+
33+
The following example demonstrates how to register a shortcut for focusing the last card in the TaskBoard.
34+
35+
$(document).ready(function() {
36+
var taskBoard = $("#taskBoard").data("kendoTaskBoard");
37+
38+
taskBoard.registerShortcut("*", {
39+
keyCode: "q",
40+
ctrlKey: true
41+
}, {
42+
handler: function () {
43+
taskBoard.items().last().focus();
44+
}
45+
});
46+
});
47+
48+
49+
## See Also
50+
51+
* [Keyboard Navigation of the TaskBoard (Demo)](https://demos.telerik.com/{{ site.platform }}/taskboard/keyboard-navigation)
52+
* [Accessibility Compliance in {{ site.product }}]({% slug compliance_accessibility %})
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: Overview
3+
page_title: Overview
4+
description: "Get started with the Telerik UI for {{ site.framework }} TaskBoard and learn about its accessibility support for WAI-ARIA, Section 508, and WCAG 2.1."
5+
slug: htmlhelpers_taskboard_aspnetcore_accessibility
6+
position: 1
7+
---
8+
9+
# TaskBoard Accessibility
10+
11+
The TaskBoard is accessible by screen readers and provides WAI-ARIA, Section 508, WCAG 2.1, and keyboard support.
12+
13+
For more information, refer to:
14+
* [Keyboard navigation by the {{ site.product_short }} TaskBoard]({% slug htmlhelpers_taskboard_aspnetcore_keynav %})
15+
* [Accessibility in {{ site.product }}]({% slug overview_accessibility %})
16+
17+
## WAI-ARIA
18+
19+
The component follows the WAI-ARIA Authoring Practices for implementing the keyboard navigation for its component role and is tested against the popular screen readers. For more information, refer to the article on [WAI-ARIA support in {{ site.product_short }}]({% slug overview_accessibility %}#wai-aria).
20+
21+
## Section 508
22+
23+
The TaskBoard is compliant with the Section 508 requirements. For more information, refer to the article on [Section 508 support in Telerik UI for {{ site.framework }}]({% slug overview_accessibility %}#section-508)
24+
25+
## WCAG 2.1
26+
27+
The TaskBoard supports the standards for providing accessible web content which are set by the [Web Content Accessibility Guidelines 2.1](https://www.w3.org/TR/WCAG/). For more information, refer to the article on [WCAG 2.1 compliance in {{ site.product_short }} ]({% slug overview_accessibility %}#wcag-21)
28+
29+
## See Also
30+
31+
* [Keyboard Navigation in the TaskBoard (Demo)](https://demos.telerik.com/{{ site.platform }}/taskboard/keyboard-navigation)
32+
* [Keyboard Navigation in the TaskBoard]({% slug htmlhelpers_taskboard_aspnetcore_keynav %})
33+
* [Accessibility Compliance in {{ site.product }}]({% slug compliance_accessibility %})
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
---
2+
title: Data Binding
3+
page_title: Data Binding
4+
description: "Get started with the Telerik UI for {{ site.framework }} TaskBoard and bind the component to local or remote data."
5+
slug: htmlhelpers_taskboard_aspnetcore_databinding
6+
position: 2
7+
---
8+
9+
# Data Binding
10+
11+
The TaskBoard provides options for binding it to [local](#binding-to-local-data) and [remote data](#binding-to-remote-data).
12+
13+
## Binding to Local Data
14+
15+
Local data is the data that is available on the client when the TaskBoard is initialized.
16+
17+
The following example demonstrates how to bind the TaskBoard data saved in the ViewData.
18+
19+
```Razor
20+
@(Html.Kendo().TaskBoard()
21+
.Name("taskBoard")
22+
.Columns(c =>
23+
{
24+
c.Add().Text("To-do").Status("todo");
25+
c.Add().Text("In Progress").Status("inProgress");
26+
c.Add().Text("Done").Status("done");
27+
})
28+
.DataDescriptionField("Description")
29+
.DataStatusField("Status")
30+
.DataTitleField("Title")
31+
.DataOrderField("Order")
32+
.BindTo((IEnumerable<Kendo.Mvc.Examples.Models.TaskBoard.CardViewModel>)ViewBag.Cards)
33+
)
34+
```
35+
```Controller
36+
public partial class TaskBoardController : Controller
37+
{
38+
public ActionResult Index()
39+
{
40+
ViewBag.Cards = GetCards();
41+
42+
return View();
43+
}
44+
45+
private static IList<CardViewModel> GetCards()
46+
{
47+
IList<CardViewModel> cards = new List<CardViewModel>()
48+
{
49+
new CardViewModel { ID = 1, Title = "Ads Analytics", Order = 1, Description = "Review ads performance", Status ="todo", Color= "blue" },
50+
new CardViewModel { ID = 2, Title = "SEO Analytics", Order = 2, Description = "Review SEO results", Status ="todo", Color= "blue" },
51+
new CardViewModel { ID = 3, Title = "Content", Order = 3, Description = "Plan content for podcasts", Status ="todo", Color= "orange" },
52+
new CardViewModel { ID = 4, Title = "Customer Research", Order = 4, Description = "Refine feedback from user interviews", Status ="inProgress", Color= "orange" },
53+
new CardViewModel { ID = 5, Title = "Campaigns", Order = 5, Description = "Collaborate with designers on new banners", Status ="inProgress", Color= "orange" },
54+
new CardViewModel { ID = 6, Title = "Customer Journey", Order = 6, Description = "Review shopping cart experience", Status ="done", Color= "green" },
55+
new CardViewModel { ID = 7, Title = "Content", Order = 7, Description = "Publish new blogpost", Status ="done", Color= "green" },
56+
new CardViewModel { ID = 8, Title = "Post-Release Party", Order = 8, Description = "Plan new release celebration", Status ="done", Color= "blue" },
57+
};
58+
59+
return cards;
60+
}
61+
}
62+
```
63+
64+
## Binding to Remote Data
65+
66+
You can also bind the TaskBoard to remote data. Remote data binding enables the retrieval of data from the server. For more information, refer to the [DataSource Overview article]({% slug htmlhelpers_datasource_aspnetcore %}).
67+
68+
The following example demonstrates how to enable remote binding in the TaskBoard by configuring the columns DataSource and the DataSource for the cards.
69+
70+
```Razor
71+
@(Html.Kendo().TaskBoard<Kendo.Mvc.Examples.Models.Scheduler.TaskViewModel, Kendo.Mvc.Examples.Models.TaskBoard.Column>()
72+
.Name("taskBoard")
73+
.ColumnSettings(columnSettings => columnSettings
74+
.DataTextField("Text")
75+
.DataStatusField("ID")
76+
)
77+
.Columns(dataSource => dataSource
78+
.Ajax()
79+
.Read("Remote_Data_Binding_Columns_Read", "TaskBoard")
80+
)
81+
.DataTitleField("Title")
82+
.DataStatusField("OwnerID")
83+
.DataDescriptionField("Description")
84+
.DataCategoryField("ID")
85+
.TemplateId("card-template")
86+
.DataSource(dataSource => dataSource
87+
.Ajax()
88+
.Model(model => model.Id(p => p.TaskID))
89+
.Read(read => read.Action("Remote_Data_Binding_Read", "TaskBoard"))
90+
.Update(update => update.Action("Remote_Data_Binding_Update", "TaskBoard"))
91+
)
92+
.Editable(false)
93+
)
94+
```
95+
```Controller
96+
public partial class TaskBoardController : Controller
97+
{
98+
public ActionResult Remote_Data_Binding()
99+
{
100+
return View();
101+
}
102+
103+
public virtual JsonResult Remote_Data_Binding_Read([DataSourceRequest] DataSourceRequest request)
104+
{
105+
return Json(taskService.GetAll().ToDataSourceResult(request));
106+
}
107+
108+
public virtual JsonResult Remote_Data_Binding_Update([DataSourceRequest] DataSourceRequest request, TaskViewModel task)
109+
{
110+
if (ModelState.IsValid)
111+
{
112+
taskService.Update(task, ModelState);
113+
}
114+
115+
return Json(new[] { task }.ToDataSourceResult(request, ModelState));
116+
}
117+
118+
public virtual JsonResult Remote_Data_Binding_Columns_Read([DataSourceRequest] DataSourceRequest request)
119+
{
120+
return Json(Remote_Data_Binding_GetColumns().ToDataSourceResult(request));
121+
}
122+
123+
private static IList<Column> Remote_Data_Binding_GetColumns()
124+
{
125+
IList<Column> taskBoardColumns = new List<Column>()
126+
{
127+
new Column { ID = 1, Text = "Pending", Status = "pending" },
128+
new Column { ID = 2, Text = "Under Review", Status = "underReview" },
129+
new Column { ID = 3, Text = "Scheduled", Status = "scheduled" }
130+
};
131+
132+
return taskBoardColumns;
133+
}
134+
}
135+
```
136+
137+
## See Also
138+
139+
* [Local Data Binding in the TaskBoard (Demo)](https://demos.telerik.com/{{ site.platform }}/taskboard/local-data-binding)
140+
* [Remote Data Binding in the TaskBoard (Demo)](https://demos.telerik.com/{{ site.platform }}/taskboard/remote-data-binding)

0 commit comments

Comments
 (0)