Skip to content

Commit b24db73

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent 5aa3b11 commit b24db73

File tree

72 files changed

+5603
-252
lines changed

Some content is hidden

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

72 files changed

+5603
-252
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: Group Paging
3+
page_title: Group Paging Overview
4+
description: "Learn how to enable the group paging in the Telerik UI for {{ site.framework }} Grid by Kendo UI and load groups on demand."
5+
slug: htmlhelpers_grid_aspnet_grouping
6+
---
7+
8+
# Group Paging Overview
9+
10+
The group paging functionality allows you to load groups on demand and page through the groups at the same time.
11+
12+
By default, the groups are rendered collapsed and each row signifies one item from the page. When you expand a group row the grid inserts new rows to the current page or moves them to the next one if they do not fit the `PageSize()` specified, followed by the rest of the group rows.
13+
14+
## Getting Started
15+
16+
To enable group paging, use the `GroupPaging()` method as part of the data source configuration, add a `Group()` and a `PageSize()` to see the result.
17+
18+
.DataSource(dataSource => dataSource
19+
.Ajax()
20+
.GroupPaging(true)
21+
.PageSize(50)
22+
.Read(read => read.Action("AllCustomers", "Grid"))
23+
.Group(x =>
24+
{
25+
x.Add(y => y.City);
26+
})
27+
)
28+
29+
## Using with Virtual Scrolling
30+
31+
Group paging can be used with virtual scrolling. This further improves the performance because the grid only renders as many rows as its page size. When a group row is expanded, the grid rows content is refreshed to show the new rows within the current page.
32+
33+
All [limitations]({% slug virtual_scrolling_aspnetcore_grid%}#known-limitations) of the virtual scrolling functionality apply.
34+
35+
## Using with Paging
36+
37+
When you use group paging with paging, the grid pager updates its total based on the current number of rows. Two kinds of paging occur:
38+
39+
* You can page the grouped rows available on other pages.
40+
* You can expand a group thus inserting new rows in the total. The new rows precede the rest of the group rows and other items in the view.
41+
42+
## Using with Remote Data
43+
44+
The built-in [`data source types`]({% slug htmlhelper_datasourcetypes_aspnetcore %}) use server operations by default. To facilitate the group paging functionality, the grid data source sends the following additional parameters: `take`, `skip`, `groupPaging`. When a row is expanded, one or two requests will be issued.
45+
46+
- If the currently expanded row does not have subgroups, only one request is sent with the `filter` parameter containing the group and subgroup value for which the items are requested.
47+
- If the currently expanded row has subgroups, an additional request is sent with the `includeSubGroupCount` parameter prompting that the response must include the total of items in the sub group
48+
49+
## Expanded state
50+
51+
The expanded state of groups is preserved during paging only, but not if sort or filter are applied.
52+
53+
## Known Limitations
54+
55+
- The group paging functionality is not supported for endless scrolling enabled grids.
56+
- If using in combination with virtual scrolling, all [limitations]({% slug virtual_scrolling_aspnetcore_grid%}#known-limitations) of the virtual scrolling functionality apply.
57+
- Group paging is not compatible with SignalR binding
58+
59+
## See Also
60+
61+
* [Virtual Scrolling of the Grid]({% slug virtual_scrolling_aspnetcore_grid %})

docs-aspnet/html-helpers/data-management/grid/scrolling/virtual.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ On mobile devices where a scrollbar that can be grabbed and dragged is not visib
7676
7777
* Horizontal scrolling is not virtualized.
7878
* Either enable virtual scrolling or paging. Do not apply both features at the same time.
79-
* Virtual scrolling is not compatible with grouping and hierarchy. Editing is supported as of R3 2017.
79+
* Virtual scrolling is not compatible with hierarchy. Editing is supported as of R3 2017. [Group paging]({% slug htmlhelpers_grid_aspnet_grouping %}) is supported as of R2 2020.
8080
* Virtual scrolling relies on calculating the average row height based on already loaded data. Having a large variance of row heights or an unknown number of rows that are not bound to data (such as group headers) might cause unexpected behavior.
8181
* Provide for a page size of the Grid that is large enough, so that the table rows do not fit in the scrollable data area. Otherwise the vertical virtual scrollbar will not be created. The page size of the Grid must be over three times larger than the number of visible table rows in the data area.
8282
* A scrollable Grid with a set height needs to be visible when initialized. In this way the Grid adjusts the height of its scrollable data area in accordance with the total height of the widget. In certain scenarios the Grid might be invisible when initialized - for example, when placed inside an initially inactive TabStrip tab or in another widget. In such cases use either of the following options:
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: Labels
3+
page_title: Labels
4+
description: "Learn the basics when working with Labels for the Telerik UI MaskedTextBox for {{ site.framework }}."
5+
slug: htmlhelpers_labels_maskedtextbox
6+
position: 3
7+
---
8+
9+
# Label Overview
10+
11+
The Label enables you to associate the label HTML element with the MaskedTextBox.
12+
13+
* [Demo page for the MaskedTextBox Floating Label](https://demos.telerik.com/{{ site.platform }}/maskedtextbox/floating-label)
14+
15+
## Basic Usage
16+
17+
To associate a MaskedTextBox with a Label, set the `content` property of the `label`.
18+
19+
## Initializing the Label for MaskedTextBox
20+
21+
The Label exposes a `content` property that sets the inner HTML of the label.
22+
23+
The below example shows how to create a Label from a string.
24+
25+
@(Html.Kendo().MaskedTextBox()
26+
.Name("MaskedTextBox")
27+
.Label(l => l.Content("Phone number"))
28+
)
29+
30+
The below example shows how to create a Label from a function. The function context (available via the `this` keyword) will be set to the widget instance.
31+
32+
@(Html.Kendo().MaskedTextBox()
33+
.Name("MaskedTextBox")
34+
.Label(l => l.ContentHandler("labelContentHandler"))
35+
)
36+
<script>
37+
function labelContentHandler() {
38+
return "Phone number"
39+
}
40+
</script>
41+
42+
## Floating Label
43+
44+
The Floating Label enables you to provide a floating label functionality to the MaskedTextBox.
45+
46+
The following example demonstrates how to set a Floating Label for a MaskedTextBox.
47+
48+
@(Html.Kendo().MaskedTextBox()
49+
.Name("MaskedTextBox")
50+
.Label(label =>
51+
{
52+
label.Content("Phone number");
53+
label.Floating(true);
54+
})
55+
)
56+
57+
If set to `true`, the component will be wrapped in a container that will allow the floating label functionality.
58+
59+
> **Important:** The [value](https://docs.telerik.com/kendo-ui/api/javascript/ui/maskedtextbox/methods/value) client-side method **does not trigger** the `focusout` event of the input.
60+
This could affect the floating label functionality.
61+
You can overcome this behavior by manually invoking the `refresh` method of the Floating Label: `$("#maskedtextbox").data("kendoMaskedTextBox").floatingLabel.refresh();`
62+
63+
## See Also
64+
65+
* [Server-Side MaskedTextBox API](/api/maskedtextbox)
66+
* [Using the API of the MaskedTextBox HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/maskedtextbox/api)

docs-aspnet/html-helpers/editors/numerictextbox/accessibility/overview.md

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -26,44 +26,11 @@ The NumericTextBox is compliant with the Section 508 requirements.
2626

2727
The NumericTextBox 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/).
2828

29-
## label Element Support
29+
## Label Element Support
3030

31-
Because of the NumericTextBox complex rendering, to focus the widget through the `label` element, you need to manually handle the click event of the label and focus the NumericTextBox.
31+
Because of the NumericTextBox complex rendering, to focus the widget through the `label` element, you need to manually handle the `click` event of the label and `focus` the NumericTextBox.
3232

33-
```
34-
@Html.Label("numeric", "Value")
35-
@Html.Kendo().NumericTextBox().Name("numeric")
36-
37-
<script>
38-
var roles = {
39-
numerictextbox: "kendoNumericTextBox",
40-
combobox: "kendoComboBox",
41-
multiselect: "kendoMultiSelect"
42-
}
43-
44-
function getWidget(element) {
45-
var role = element.data("role");
46-
role = roles[role];
47-
48-
if (role) {
49-
return element.data(role);
50-
}
51-
}
52-
53-
$("label").click(function() {
54-
var label = $(this),
55-
id = label.attr("for"),
56-
widget;
57-
58-
if (id) {
59-
widget = getWidget($("#" + id));
60-
if (widget) {
61-
widget.focus();
62-
}
63-
}
64-
});
65-
</script>
66-
```
33+
Another possible solution is to use the NumericTextBox [`Label` property]({% slug htmlhelpers_labels_numerictextbox %}), which automatically focuses on the input.
6734

6835
## See Also
6936

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: Labels
3+
page_title: Labels
4+
description: "Learn the basics when working with Labels for the Telerik UI NumericTextBox for {{ site.framework }}."
5+
slug: htmlhelpers_labels_numerictextbox
6+
position: 3
7+
---
8+
9+
# Label Overview
10+
11+
The Label enables you to associate the label HTML element with the NumericTextBox.
12+
13+
* [Demo page for the NumericTextBox Floating Label](https://demos.telerik.com/{{ site.platform }}/numerictextbox/floating-label)
14+
15+
## Basic Usage
16+
17+
To associate a NumericTextBox with a Label, set the `content` property of the `label`.
18+
19+
## Initializing the Label for NumericTextBox
20+
21+
The Label exposes a `content` property that sets the inner HTML of the label.
22+
23+
The below example demonstrates how to create a Label from a string.
24+
25+
@(Html.Kendo().NumericTextBox()
26+
.Name("NumericTextBox")
27+
.Label(l => l.Content("Price"))
28+
)
29+
30+
The below example demonstrates how to create a Label from a function. The function context (available via the `this` keyword) will be set to the widget instance.
31+
32+
@(Html.Kendo().NumericTextBox()
33+
.Name("NumericTextBox")
34+
.Label(l => l.ContentHandler("labelContentHandler"))
35+
)
36+
<script>
37+
function labelContentHandler() {
38+
return "Price"
39+
}
40+
</script>
41+
42+
## Floating Label
43+
44+
The Floating Label enables you to provide a floating label functionality to the NumericTextBox.
45+
46+
The following example demonstrates how to set a Floating Label for a NumericTextBox.
47+
48+
@(Html.Kendo().NumericTextBox()
49+
.Name("NumericTextBox")
50+
.Label(label =>
51+
{
52+
label.Content("Price");
53+
label.Floating(true);
54+
})
55+
)
56+
57+
If set to `true`, the component will be wrapped in a container that will allow the floating label functionality.
58+
59+
> **Important:** The [value](https://docs.telerik.com/kendo-ui/api/javascript/ui/numerictextbox/methods/value) client-side method **does not trigger** the `focusout` event of the input.
60+
This could affect the floating label functionality.
61+
You can overcome this behavior by manually invoking the `refresh` method of the Floating Label: `$("#numerictextbox").data("kendoNumericTextBox").floatingLabel.refresh();`
62+
63+
## See Also
64+
65+
* [Server-Side API](/api/numerictextbox)
66+
* [Using the API of the NumericTextBox HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/numerictextbox/api)

docs-aspnet/html-helpers/editors/numerictextbox/limitations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Known Limitations
33
page_title: Known Limitations
44
description: "Get started with the Telerik UI NumericTextBox for {{ site.framework }} and learn what are the known limitations of the helper."
55
slug: limitations_numerictextbox_aspnetcore
6-
position: 4
6+
position: 5
77
---
88

99
# Known Limitations

docs-aspnet/html-helpers/editors/numerictextbox/precision.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Input Restrictions
33
page_title: Input Restrictions
44
description: "Get started with the Telerik UI NumericTextBox for {{ site.framework }} and learn how to control the precision of the entered numebr and restrict the value to a specific range."
55
slug: input_restrictions_numerictextbox_aspnetcore
6-
position: 3
6+
position: 4
77
---
88

99
# Input Restrictions
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
title: Labels
3+
page_title: Labels
4+
description: "Learn the basics when working with the Telerik UI Labels for TextBox for {{ site.framework }}."
5+
slug: htmlhelpers_labels_textbox
6+
position: 2
7+
---
8+
# Label Overview
9+
10+
The Label enables you to associate the label HTML element with the TextBox.
11+
12+
* [Demo page for the TextBox Floating Label](https://demos.telerik.com/{{ site.platform }}/textbox/floating-label)
13+
14+
## Basic Usage
15+
16+
To associate a TextBox with a Label, set the `content` property of the `label`.
17+
18+
## Initializing the Label for the TextBox
19+
20+
The Label exposes a `content` property that sets the inner HTML of the label.
21+
22+
The below example shows how to create a Label from a string.
23+
24+
@(Html.Kendo().TextBox()
25+
.Name("TextBox")
26+
.Label(l => l.Content("First name"))
27+
)
28+
29+
The below example shows how to create a Label from a function. The function context (available via the `this` keyword) will be set to the widget instance.
30+
31+
@(Html.Kendo().TextBox()
32+
.Name("TextBox")
33+
.Label(l => l.ContentHandler("labelContentHandler"))
34+
)
35+
<script>
36+
function labelContentHandler() {
37+
return "First name"
38+
}
39+
</script>
40+
41+
## Floating Label
42+
43+
The Floating Label enables you to provide a floating label functionality to the TextBox.
44+
45+
The following example demonstrates how to set a Floating Label for a TextBox.
46+
47+
@(Html.Kendo().TextBox()
48+
.Name("TextBox")
49+
.Label(label =>
50+
{
51+
label.Content("First name");
52+
label.Floating(true);
53+
})
54+
)
55+
56+
If set to `true`, the component will be wrapped in a container that will allow the floating label functionality.
57+
58+
> **Important:** The [value](https://docs.telerik.com/kendo-ui/api/javascript/ui/textbox/methods/value) client-side method **does not trigger** the `focusout` event of the input.
59+
This could affect the floating label functionality.
60+
You can overcome this behavior by manually invoking the `refresh` method of the Floating Label: `$("#textbox").data("kendoTextBox").floatingLabel.refresh();`
61+
62+
## See Also
63+
64+
* [Server-Side API](/api/textbox)
65+
* [Using the API of the TextBox HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/textbox/api)

docs-aspnet/html-helpers/editors/textbox/rtl-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: RTL Support
33
page_title: Right-to-Left Support
44
description: "Get started with the Telerik UI TextBox for {{ site.framework }} and learn about the RTL supports it provides."
55
slug: rtl_textbox_aspnetcore
6-
position: 2
6+
position: 3
77
---
88

99
# Right-to-Left Support

0 commit comments

Comments
 (0)