Skip to content

Commit e6697fc

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent bd906cd commit e6697fc

File tree

31 files changed

+1572
-708
lines changed

31 files changed

+1572
-708
lines changed

docs-aspnet-core/_config.yml

Lines changed: 7 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,6 @@ navigation:
120120
"html-helpers/data-management/grid/performance":
121121
title: "Performance Tips"
122122
position: 17
123-
"html-helpers/data-management/grid/globalization":
124-
title: "Globalization"
125-
position: 50
126-
"html-helpers/data-management/grid/accessibility":
127-
title: "Accessibility"
128-
position: 60
129123
"html-helpers/data-management/treelist/editing":
130124
title: "Editing"
131125
position: 3
@@ -135,12 +129,6 @@ navigation:
135129
"html-helpers/data-management/treelist/columns":
136130
title: "Columns"
137131
position: 7
138-
"html-helpers/data-management/treelist/globalization":
139-
title: "Globalization"
140-
position: 40
141-
"html-helpers/data-management/treelist/accessibility":
142-
title: "Accessibility"
143-
position: 50
144132
"html-helpers/data-management/pivotgrid":
145133
title: "PivotGrid"
146134
"html-helpers/data-management/spreadsheet/import-and-export-data":
@@ -149,65 +137,11 @@ navigation:
149137
title: "End-User Documentation"
150138
"html-helpers/editors":
151139
title: "Editors"
152-
"html-helpers/editors/autocomplete/accessibility":
153-
title: "Accessibility"
154-
position: 50
155-
"html-helpers/editors/combobox/accessibility":
156-
title: "Accessibility"
157-
position: 50
158-
"html-helpers/editors/daterangepicker/globalization":
159-
title: "Globalization"
160-
position: 40
161-
"html-helpers/editors/daterangepicker/accessibility":
162-
title: "Accessibility"
163-
position: 50
164-
"html-helpers/editors/datetimepicker/globalization":
165-
title: "Globalization"
166-
position: 40
167-
"html-helpers/editors/datetimepicker/accessibility":
168-
title: "Accessibility"
169-
position: 50
170-
"html-helpers/editors/dropdownlist/accessibility":
171-
title: "Accessibility"
172-
position: 50
173-
"html-helpers/editors/dropdowntree/accessibility":
174-
title: "Accessibility"
175-
position: 50
176-
"html-helpers/editors/editor/accessibility":
177-
title: "Accessibility"
178-
position: 50
179-
"html-helpers/editors/listbox/globalization":
180-
title: "Globalization"
181-
position: 40
182-
"html-helpers/editors/listbox/accessibility":
183-
title: "Accessibility"
184-
position: 50
185-
"html-helpers/editors/multicolumncombobox/accessibility":
186-
title: "Accessibility"
187-
position: 50
188-
"html-helpers/editors/multiselect/accessibility":
189-
title: "Accessibility"
190-
position: 50
191-
"html-helpers/editors/numerictextbox/accessibility":
192-
title: "Accessibility"
193-
position: 50
194-
"html-helpers/editors/rating/accessibility":
195-
title: "Accessibility"
196-
position: 50
197-
"html-helpers/editors/switch/accessibility":
198-
title: "Accessibility"
199-
position: 50
200-
"html-helpers/editors/upload/accessibility":
201-
title: "Accessibility"
202-
position: 50
203140
"html-helpers/editors/listbox/binding":
204141
title: "Data Binding"
205142
position: 2
206143
"html-helpers/editors/flatcolorpicker":
207144
title: "FlatColorPicker"
208-
"html-helpers/editors/datepicker/accessibility":
209-
title: "Accessibility"
210-
position: 50
211145
"html-helpers/charts":
212146
title: "Charts"
213147
"html-helpers/charts/chart":
@@ -248,24 +182,18 @@ navigation:
248182
"html-helpers/navigation/menu/contextmenu":
249183
title: "ContextMenu"
250184
position: 3
251-
"html-helpers/navigation/menu/accessibility":
252-
title: "Accessibility"
253-
position: 50
254185
"html-helpers/conversational-ui":
255186
title: "Conversational UI"
256187
isNew: true
257188
"html-helpers/conversational-ui/chat":
258189
title: "Chat"
259190
"html-helpers/interactivity":
260191
title: "Interactivity and UX"
192+
"html-helpers/interactivity/sortable/integration":
193+
title: "Integration"
194+
position: 6
261195
"html-helpers/media":
262196
title: "Media"
263-
"html-helpers/media/mediaplayer/globalization":
264-
title: "Globalization"
265-
position: 40
266-
"html-helpers/media/mediaplayer/accessibility":
267-
title: "Accessibility"
268-
position: 50
269197
"html-helpers/pdf":
270198
title: "PDF"
271199
"html-helpers/pdf/pdfviewer":
@@ -331,9 +259,6 @@ navigation:
331259
title: "ButtonGroup"
332260
"html-helpers/scheduling/calendar":
333261
title: "Calendar"
334-
"html-helpers/scheduling/calendar/accessibility":
335-
title: "Accessibility"
336-
position: 50
337262
"html-helpers/scheduling/multiviewcalendar":
338263
title: "MultiViewCalendar"
339264
"tag-helpers/scheduling/multiviewcalendar":
@@ -446,8 +371,12 @@ navigation:
446371
title: "Templates"
447372
"*switch":
448373
title: "Switch"
374+
"*/globalization":
375+
title: "Globalization"
376+
position: 50
449377
"*/accessibility":
450378
title: "Accessibility"
379+
position: 60
451380

452381
## The application virtual path
453382
baseurl: /aspnet-core

docs-aspnet-core/html-helpers/editors/listbox/globalization/rtl-support.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: RTL Support
33
page_title: Right-to-Left Support | Telerik UI ListBox HtmlHelper for ASP.NET Core
4-
description: "Configure the Telerik UI ListBox for ASP.NET Core to enable its RTL functionality."
4+
description: "Get started with the Telerik UI ListBox for ASP.NET Core and learn about the RTL supports it provides."
55
slug: htmlhelpers_listbox_rtl_aspnetcore
66
position: 3
77
---
@@ -14,4 +14,5 @@ For more information, refer to the [demo on RTL support by the ListBox](https://
1414

1515
## See Also
1616

17+
* [RTL Support by the ListBox HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/listbox/right-to-left-support)
1718
* [Server-Side API](/api/listbox)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Accessibility
3+
page_title: MaskedTextBox Accessibility | Telerik UI MaskedTextBox HtmlHelper for ASP.NET Core
4+
description: "Get started with the Telerik UI MaskedTextBox for ASP.NET Core and learn about its accessibility support for WAI-ARIA, Section 508, and WCAG 2.1."
5+
slug: accessibility_maskedtextbox_aspnetcore
6+
position: 60
7+
---
8+
9+
# MaskedTextBox Accessibility
10+
11+
The MaskedTextBox is accessible by screen readers and provides WAI-ARIA, Section 508, WCAG 2.1, and keyboard support.
12+
13+
For more information, refer to the article on [accessibility in Telerik UI for ASP.NET Core]({% slug overview_accessibility %}).
14+
15+
## WAI-ARIA
16+
17+
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.
18+
19+
## Section 508
20+
21+
The MaskedTextBox is compliant with the Section 508 requirements.
22+
23+
## WCAG 2.1
24+
25+
The MaskedTextBox 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/).
26+
27+
## See Also
28+
29+
* [Basic Usage of the MaskedTextBox HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/maskedtextbox/index)
30+
* [Using the API of the MaskedTextBox HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/maskedtextbox/api)
31+
* [Server-Side API](/api/maskedtextbox)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Overview
3+
page_title: MaskedTextBox Globalization | Telerik UI MaskedTextBox HtmlHelper for ASP.NET Core
4+
description: "Get started with the Telerik UI MaskedTextBox for ASP.NET Core and learn about the globalization options it supports."
5+
slug: globalization_maskedtextbox_aspnetcore
6+
position: 1
7+
---
8+
9+
# MaskedTextBox Globalization
10+
11+
The globalization process combines the translation of component messages (localization) with adapting them to specific cultures (internationalization and right-to-left support).
12+
13+
To determine the currency symbol and other culture-specific properties, the MaskedTextBox uses the `kendo.culture.current` culture.
14+
15+
The globalization functionality of the MaskedTextBox is enabled through its [right-to-left support]({% slug rtl_maskedtextbox_aspnetcore %}). For a complete example, refer to the [demo on globalization of the MaskedTextBox](https://demos.telerik.com/aspnet-core/maskedtextbox/globalization).
16+
17+
For more information on using localization and right-to-left languages with Telerik UI for ASP.NET Core HTML Helpers, refer to the article on [globalization support by Telerik UI for ASP.NET Core]({% slug overview_globalization_core %}).
18+
19+
## See Also
20+
21+
* [RTL Support by the MaskedTextBox HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/maskedtextbox/right-to-left-support)
22+
* [Globalization by the MaskedTextBox HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/maskedtextbox/globalization)
23+
* [Globalization in Telerik UI for ASP.NET Core]({% slug overview_globalization_core %})
24+
* [Server-Side API](/api/maskedtextbox)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: RTL Support
3+
page_title: Right-to-Left Support | Telerik UI MaskedTextBox HtmlHelper for ASP.NET Core
4+
description: "Get started with the Telerik UI MaskedTextBox for ASP.NET Core and learn about the RTL supports it provides."
5+
slug: rtl_maskedtextbox_aspnetcore
6+
position: 2
7+
---
8+
9+
# Right-to-Left Support
10+
11+
Right-to-left (RTL) support reflects the ability of a widget to render its content in a right-to-left direction for right-to-left languages, such as Arabic, Hebrew, Chinese, or Japanese.
12+
13+
For more information, refer to the [demo on RTL support by the MaskedTextBox](https://demos.telerik.com/aspnet-core/maskedtextbox/right-to-left-support).
14+
15+
## See Also
16+
17+
* [RTL Support by the MaskedTextBox HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/maskedtextbox/right-to-left-support)
18+
* [Server-Side API](/api/maskedtextbox)

docs-aspnet-core/html-helpers/editors/maskedtextbox/overview.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ The following example demonstrates the basic configuration for the MaskedTextBox
2929

3030
## Functionality and Features
3131

32-
The MaskedTextBox provides options for [using predefined and custom masks rules and validate user input]({% slug validation_maskedtextbox_aspnetcore %}).
32+
* [Mask rules]({% slug validation_maskedtextbox_aspnetcore %})
33+
* [Globalization]({% slug globalization_maskedtextbox_aspnetcore %})
34+
* [Accessibility]({% slug accessibility_maskedtextbox_aspnetcore %})
3335

3436
## Events
3537

@@ -53,7 +55,7 @@ The following example demonstrates how to subscribe to events by a handler name.
5355

5456
## Referencing Existing Instances
5557

56-
To reference an existing Telerik UI MaskedTextBox instance, use the [`jQuery.data()`](http://api.jquery.com/jQuery.data/) method. Once a reference is established, use the [MaskedTextBox API](/api/maskedtextbox) to control its behavior.
58+
To reference an existing Telerik UI MaskedTextBox instance, use the [`jQuery.data()`](http://api.jquery.com/jQuery.data/) method. Once a reference is established, use the [MaskedTextBox client-side API](/api/maskedtextbox) to control its behavior.
5759

5860
The following example demonstrates how to access an existing MaskedTextBox instance.
5961

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
---
2+
title: Common Scenarios
3+
page_title: Common Scenarios | Telerik UI Sortable HtmlHelper for ASP.NET Core
4+
description: "Get started with the Telerik UI Sortable HtmlHelper for ASP.NET Core and learn check out the common scenarios."
5+
slug: htmlhelpers_sortable_aspnetcore_common_scenarios
6+
position: 7
7+
---
8+
9+
# Common Scenarios
10+
11+
This article provides common scenarios you might encounter when working with the Telerik UI Sortable HtmlHelper for ASP.NET Core.
12+
13+
* [Persisting the current items order](#persisting-the-current-items-order)
14+
* [Handling items which contain input elements](#handling-items-with-input-elements)
15+
* [Handling the selection of radio buttons](#handling-radio-button-selection)
16+
17+
## Persisting the Current Items Order
18+
19+
By default, the Sortable does not persist the order of the current items. To detect when changes in the items order occur and save them either in local storage or submit them to the server with [`jQuery.ajax`](http://api.jquery.com/jQuery.ajax/), use the `change` event. To restore the Sortable layout, render the DOM elements in their last order.
20+
21+
The following example demonstrates how to persist the order of the current items in local storage.
22+
23+
<div id="sortable"></div>
24+
25+
<button id="reset">Reset</button>
26+
27+
<script id="tmp" type="text/x-kendo-template">
28+
<div class="sortable">Item #:data#</div>
29+
</script>
30+
31+
<script>
32+
var initialData = [1, 2, 3, 4, 5, 6, 7], //initial items order (used if there is no saved data
33+
localStorageSupport = (('localStorage' in window && window['localStorage'] !== null)),
34+
data,
35+
html;
36+
37+
if (localStorageSupport) {
38+
// Retrieve local storage data if such is available. Otherwise, use the default order.
39+
data = JSON.parse(localStorage.getItem("sortableData")) || initialData;
40+
} else {
41+
alert("your browser does not support local storage");
42+
data = initialData;
43+
}
44+
45+
html = kendo.render(kendo.template($("#tmp").html()), data); // Render the HTML with the data.
46+
$("#sortable").html(html); //append the HTML to the Sortable container
47+
48+
function onChange(e) {
49+
var item = data.splice(e.oldIndex, 1)[0]; // Remove the item that has changed its order.
50+
data.splice(e.newIndex, 0, item); // Add the item back using the newIndex.
51+
52+
localStorage.setItem("sortableData", kendo.stringify(data)); // Set the updated data in the local storage.
53+
}
54+
55+
$("#reset").click(function () {
56+
localStorage.clear(); // Clear the local storage.
57+
alert("Local storage is cleared. Please reload the page!");
58+
});
59+
</script>
60+
61+
@(Html.Kendo().Sortable()
62+
.For("#sortable")
63+
.Filter(".sortable")
64+
.Events(ev => ev.Change("onChange"))
65+
)
66+
67+
<style>
68+
#sortable {
69+
-webkit-user-select: none;
70+
-moz-user-select: none;
71+
-ms-user-select: none;
72+
user-select: none;
73+
width: 300px;
74+
}
75+
76+
.sortable {
77+
padding: 10px 0;
78+
margin: 1px 0;
79+
width: 358px;
80+
text-align: center;
81+
color: #ffffff;
82+
background-color: #51A0ED;
83+
}
84+
</style>
85+
86+
## Handling Items with input Elements
87+
88+
The `<input>` elements inside Sortable items cannot be focused because the items are draggable. To avoid this behavior, use the `Ignore` option.
89+
90+
<ul id="sortable">
91+
<li>ItemA1 <input type="text" /></li>
92+
<li>ItemA2 <input type="text" /></li>
93+
<li>ItemA3 <input type="text" /></li>
94+
</ul>
95+
96+
@(Html.Kendo().Sortable()
97+
.For("#sortable")
98+
.Ignore("input")
99+
)
100+
101+
## Handling Radio Button Selection
102+
103+
A Sortable with radio buttons and a hint cloned from the Sortable element will lose the selected radio button if dragged because the clone will take over the selection. To avoid this behavior, clear the name of the radio button in the hint.
104+
105+
<ul id="sortable-basic">
106+
<li class="sortable"><input type="radio" name="foo" />Papercut <span>3:04</span></li>
107+
<li class="sortable"><input type="radio" name="foo" />One Step Closer <span>2:35</span></li>
108+
<li class="sortable"><input type="radio" name="foo" />With You <span>3:23</span></li>
109+
<li class="sortable"><input type="radio" name="foo" />Points of Authority <span>3:20</span></li>
110+
<li class="sortable"><input type="radio" name="foo" />Crawling <span>3:29</span></li>
111+
</ul>
112+
113+
@(Html.Kendo().Sortable()
114+
.For("#sortable-basic")
115+
.HintHandler("hintCustom")
116+
.PlaceholderHandler("placeholderCustom")
117+
)
118+
119+
<script>
120+
function hintCustom(element) {
121+
var hint = element.clone().addClass("hint");
122+
// Alternatively, remove the input from the hint.
123+
hint.find("input").attr("name", "");
124+
return hint;
125+
}
126+
127+
function placeholderCustom(element) {
128+
return element.clone().addClass("placeholder").text("drop here");
129+
}
130+
</script>
131+
132+
## See Also
133+
134+
* [Basic Usage of the Sortable HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/sortable/index)
135+
* [Server-Side API](/api/sortable)

0 commit comments

Comments
 (0)