Skip to content

Commit 6116228

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent 2fa9790 commit 6116228

File tree

12 files changed

+540
-27
lines changed

12 files changed

+540
-27
lines changed

docs-aspnet/globalization/overview.md

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,58 @@ Globalization is the process of designing and developing an application that wor
1313

1414
It combines localization (the translation of component messages) with internationalization (their adaptation to a specific culture). Cultures require and define particular information for their number formats, week and month names, date and time formats, and so on.
1515

16+
All Kendo UI widgets and their {{ site.framework }} server-side wrappers which support date or number formatting depend also on the [current culture](https://docs.telerik.com/kendo-ui/api/javascript/kendo/methods/culture). Usually, such components are more complex (for example, the [Grid]({% slug globalization_grid_aspnetcore %}), [ListView]({% slug globalization_htmlhelpers_listview %}), [Charts]({% slug htmlhelpers_charts_aspnetcore %}), and so on).
17+
18+
The following {{ site.product }} helpers depend on the [current culture](https://docs.telerik.com/kendo-ui/api/javascript/kendo/methods/culture):
19+
20+
* [Calendar]({% slug globalization_calendar_aspnetcore %})
21+
* [DateInput]({% slug globalization_dateinput_aspnetcore %})
22+
* [DatePicker]({% slug globalization_datepicker_aspnetcore %})
23+
* [TimePicker]({% slug globalization_timepicker_aspnetcore %})
24+
* [DateTimePicker]({% slug globalization_datetimepicker_aspnetcore %})
25+
* [NumericTextBox]({% slug globalization_numerictextbox_aspnetcore %})
26+
* [MaskedTextBox (globalized mask literals)]({% slug globalization_maskedtextbox_aspnetcore %})
27+
* [Scheduler]({% slug htmlhelpers_scheduler_aspnetcore %})
28+
* [Gantt]({% slug htmlhelpers_gantt_aspnetcore %})
29+
* [Grid]({% slug globalization_grid_aspnetcore %})
30+
* [Chart]({% slug htmlhelpers_charts_aspnetcore %})
31+
* [ListView]({% slug globalization_htmlhelpers_listview %})
32+
1633
## Applying Cultures
1734

1835
To use a culture that is different from the default `en-US` one in {{ site.product }}:
1936

20-
1. Copy the required culture JavaScript file from the `\js\culture\` folder of your {{ site.product }} installation to the {% if site.core %}`wwwroot/lib/kendo-ui/js/cultures/`{% else %}`~/Scripts/cultures/`{% endif %} folder of your application. This example uses the Spanish `es-ES` culture.
21-
1. Include the corresponding culture JavaScript file after the other JavaScript product files.
37+
1. Copy the required culture JavaScript file from the `\js\culture\` folder of your [{{ site.product }} installation]{% if site.core %}({% slug downloadinstall_aspnetcore %}){% else %}({% slug overview_downloadinstallation_mvc %}){% endif %} to the {% if site.core %}`wwwroot/lib/kendo-ui/js/cultures/`{% else %}`~/Scripts/cultures/`{% endif %} folder of your application. Alternatively, provide the culture files by using the [Kendo CDN service]{% if site.core %}({% slug cdnservices_core %}){% else %}({% slug cdnservices_aspnetmvc %}){% endif %}.
38+
39+
1. Include the corresponding culture JavaScript file after the other JavaScript product files. This example uses the Spanish `es-ES` culture.
40+
2241

2342
{% if site.core %}
24-
```Razor
43+
```LocalFiles
2544
<script src="~/lib/jquery/dist/jquery.js"></script>
2645
<script src="~/lib/kendo-ui/js/kendo.all.min.js"></script>
2746
<script src="~/lib/kendo-ui/js/kendo.aspnetmvc.min.js"></script>
2847
<script src="~/lib/kendo-ui/js/cultures/kendo.culture.es-ES.min.js"></script>
2948
```
49+
```CDN
50+
<script src="https://kendo.cdn.telerik.com/<version>/js/jquery.min.js"></script>
51+
<script src="https://kendo.cdn.telerik.com/<version>/js/kendo.all.min.js"></script>
52+
<script src="https://kendo.cdn.telerik.com/<version>/js/kendo.aspnetmvc.min.js"></script>
53+
<script src="https://kendo.cdn.telerik.com/<version>/js/cultures/kendo.culture.es-ES.min.js"></script>
54+
```
3055
{% else %}
31-
```Razor
56+
```LocalFiles
3257
<script src="@Url.Content("~/Scripts/jquery.min.js")"></script>
3358
<script src="@Url.Content("~/Scripts/kendo.all.min.js")"></script>
3459
<script src="@Url.Content("~/Scripts/kendo.aspnetmvc.min.js")"></script>
3560
<script src="@Url.Content("~/Scripts/cultures/kendo.culture.es-ES.min.js")"></script>
3661
```
62+
```CDN
63+
<script src="https://kendo.cdn.telerik.com/<version>/js/jquery.min.js"></script>
64+
<script src="https://kendo.cdn.telerik.com/<version>/js/kendo.all.min.js"></script>
65+
<script src="https://kendo.cdn.telerik.com/<version>/js/kendo.aspnetmvc.min.js"></script>
66+
<script src="https://kendo.cdn.telerik.com/<version>/js/cultures/kendo.culture.es-ES.min.js"></script>
67+
```
3768
{% endif %}
3869

3970
1. Set the current culture by calling the [`kendo.culture`](https://docs.telerik.com/kendo-ui/api/javascript/kendo/methods/culture) method. You have to add the script block after the culture JavaScript file. As a result, all {{ site.product }} helpers will use the `es-ES` culture for parsing and formatting dates and numbers.

docs-aspnet/html-helpers/data-management/grid/grouping/aggregates.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Aggregates can be used for the entire grid via:
4141
Or, to each individual group via:
4242

4343
* `ClientGroupFooterTemplate` of a `GridColumn` - a footer in the respective column that renders when the grid is grouped.
44-
* `ClientGroupHeaderTemplate` of a `GridColumn` - a header in the respective column that renders when the grid is grouped by that column. The `value` field in the context carries the current group value.
44+
* `ClientGroupHeaderColumnTemplate` of a `GridColumn` - a header in the respective column that renders when the grid is grouped by that column. The `value` field in the context carries the current group value.
4545

4646
## How to Enable Aggregates
4747

@@ -51,7 +51,36 @@ To enable aggregates:
5151
1. Use the aggregate result in the templates that support it - their `context` is strongly typed and carries the aggregate values in the respective fields.
5252
1. Set the grid's `Groupable` property to `true`.
5353
* If you will be using only `FooterTemplate`s - grouping is not required.
54-
1. Group the grid to see the effect on group-specific templates
54+
1. Group the grid to see the effect on group-specific templates.
55+
56+
57+
```
58+
@(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.ProductViewModel>()
59+
.Name("grid")
60+
.Columns(columns =>
61+
{
62+
columns.Bound(p => p.ProductName)
63+
.ClientGroupFooterTemplate("Product: #=count#");
64+
columns.Bound(p => p.UnitPrice).Format("{0:C}")
65+
.ClientFooterTemplate("Total price: #=sum#");
66+
columns.Bound(p => p.UnitsInStock)
67+
.ClientGroupHeaderColumnTemplate("Units In Stock: #= value # (Count: #= count#)")
68+
.ClientGroupFooterTemplate("<div>Min: #= min #</div><div>Max: #= max #</div>");
69+
})
70+
.Groupable()
71+
.Pageable()
72+
.DataSource(dataSource => dataSource
73+
.Ajax()
74+
.Aggregates(aggregates =>
75+
{
76+
aggregates.Add(p => p.ProductName).Count();
77+
aggregates.Add(p => p.UnitPrice).Sum();
78+
aggregates.Add(p => p.UnitsInStock).Min().Max().Count();
79+
})
80+
.Read(read => read.Action("AllProducts", "Grid"))
81+
)
82+
)
83+
```
5584
5685
* [Example Demo Grid with grouping and aggregates](https://demos.telerik.com/{{ site.platform }}/grid/aggregates)
5786

docs-aspnet/html-helpers/data-management/grid/search-panel.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ To enable the search panel functionality, include the `Search` option to the too
2525
You can also customize which fields to search through the data when a value is entered in the search input.
2626

2727
...
28-
.Search(s=> { s.Field(c => c.ContactName); })
28+
.Search(s=>
29+
{
30+
s.Field(c => c.ContactName);
31+
s.Field(c => c.CompanyName);
32+
})
2933

3034
The code snippets from above can be seen in action in the following demo:
3135

docs-aspnet/html-helpers/pdf/pdfviewer/pdfjs-processing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ The following example demonstrates how to configure the PDFViewer to use PDF.js
3636
)
3737
```
3838

39+
For a complete example, refer to the following demo:
40+
41+
* [PDFViewer PDFjs Processing Demo](https://demos.telerik.com/{{ site.platform }}/pdfviewer/index)
42+
3943
## Browser Support
4044

4145
PDF.js processing is not supported in Internet Explorer 9. To work properly in that browser version, PDF.js requires additional configuration.

docs-aspnet/installation/getting-started-copy-client-resources.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ To include the client-side resources, use any of the following approaches:
3434

3535
![Kendo UI resources](../getting-started-core/images/kendo-ui-wwwroot.png)
3636

37+
The culture and localization (the translation of component messages) scripts are included in the `js` folder. For more information on using localization, internationalization, and right-to-left (RTL) support with {{ site.product }} helpers, refer to the article on [globalization support by {{ site.product }}]({% slug overview_globalization_core %}).
38+
39+
3740
1. Register the UI styles and scripts in `~/Views/Shared/_Layout.cshtml`.
3841

3942
> * The CDN links and/or package versions have to point to the same UI for ASP.NET Core version which your project references.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ position: 1
1010

1111
This article lists the breaking or important changes in the 2021 releases of Kendo UI.
1212

13-
## Kendo UI 2021 R3
13+
## Kendo UI 2021 R3 SP 1
14+
15+
**ColorPicker**
16+
17+
As of the end of 2021, the ColorPicker has a new design. As a result, some new features were introduced. If you prefer the old design of the widget, refer to [this section from our documentation](https://docs.telerik.com/kendo-ui/controls/editors/colorpicker/overview#old-design-of-the-colorpicker).
1418

15-
> Important change
19+
## Kendo UI 2021 R3
1620

1721
**MultiSelect**
1822

1923
As of the 2021 R3 release the MultiSelect in virtualization scenario will no longer support `Shift` + `Arrow` key selection as it is described in the [Keyboard navigation demo](https://demos.telerik.com/kendo-ui/multiselect/keyboard-navigation). That is because when going from one virtual page of MultiSelect items to another the items indexes are reused. As the range selection functionality relies on indexes, executing it via the `Shift` + `Arrow` combination may result in improper selection in the widget. That is why it has been disabled for virtualized MultiSelect widgets.
2024

2125
## Kendo UI 2021 R2 SP1
2226

23-
> Important change
24-
2527
**TileLayout**
2628

2729
The TileLayout container headers come with a new rendering. The TileLayout containers no longer render the header texts inside `<h5>` elements, but place them inside `<div>` elements.
2830

2931
## Kendo UI 2021 R2
3032

31-
> Important change
32-
3333
**Scheduler**
3434

3535
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`.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: Contrast Tool
3+
page_title: ColorPicker Documentation | ColorPicker Contrast Tool
4+
description: "Check out the Contrast Tool in the ColorPicker."
5+
slug: contrast_tool_kendoui_colorpicker_widget
6+
position: 4
7+
---
8+
9+
# Contrast Tool
10+
11+
As of the end of 2021, the ColorPicker provides a Color Contrast Tool. It provides the option for checking the color contrast ratio between two colors. Color contrast between text and background is important on web pages. It affects some people’s ability to perceive the information. The tool follows the WCAG recommendations for web accessibility.
12+
13+
According to the WCAG standard, there are two levels of contrast ratio:
14+
* AA (minimum contrast)—The level AA requires a contrast ratio of at least 4.5:1 for normal text.
15+
* AAA (enhanced contrast)—The level AAA requires a contrast ratio of at least 7:1 for normal text.
16+
17+
The example below demonstrates how to enable the contrast tool in the ColorPicker:
18+
19+
```dojo
20+
<div class="demo-section">
21+
<div class="column">
22+
<h3 class="title"><label for="picker">Foreground Color</label></h3>
23+
<input id="foreground-picker" />
24+
</div>
25+
<div class="column">
26+
<h3 class="title"><label for="picker">Background Color</label></h3>
27+
<input id="background-picker" />
28+
</div>
29+
</div>
30+
<script>
31+
32+
$("#foreground-colorpicker").kendoColorPicker({
33+
value: "#ffffff",
34+
buttons: false,
35+
contrastTool: {
36+
backgroundColor: "#ffffff"
37+
}
38+
});
39+
$("#background-colorpicker").kendoColorPicker({
40+
value: "#ffffff",
41+
input: false,
42+
views: ["gradient"],
43+
change: function (e) {
44+
var foregroundPicker = $("#foreground-colorpicker").data("kendoColorPicker")
45+
foregroundPicker.setBackgroundColor(e.sender.value())
46+
}
47+
});
48+
</script>
49+
<style>
50+
.demo-section {
51+
display: inline-flex;
52+
width: 100%;
53+
box-sizing: border-box;
54+
}
55+
56+
.column {
57+
margin:auto;
58+
text-align: center;
59+
}
60+
</style>
61+
```
62+
63+
## See Also
64+
65+
* [Contrast Tool of the ColorPicker (Demo)](https://demos.telerik.com/kendo-ui/colorpicker/contrast-tool)
66+
* [JavaScript API Reference of the ColorPicker](/api/javascript/ui/colorpicker)

docs/controls/editors/colorpicker/overview.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,21 @@ To display a custom list of colors in the ColorPicker, pass them in the `palette
6666
});
6767
</script>
6868

69+
## Legacy ColorPicker Design
70+
71+
As of the end of 2021, the ColorPicker has a new design. The configuration from the example below shows how to revert to the old design of the widget:
72+
73+
```dojo
74+
<input id="picker" />
75+
<script>
76+
$("#picker").kendoColorPicker({
77+
input: false,
78+
preview:false,
79+
views: ["gradient"]
80+
});
81+
</script>
82+
```
83+
6984
## See Also
7085

7186
* [Basic Usage of the ColorPicker (Demo)](https://demos.telerik.com/kendo-ui/colorpicker/index)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: RGB and HEX Formats
3+
page_title: jQuery ColorPicker Documentation | ColorPicker RGB and HEX Formats
4+
description: "Check out the RGB and HEX input formats in the ColorPicker."
5+
slug: rgb_hex_kendoui_colorpicker_widget
6+
position: 3
7+
---
8+
9+
# RGB and HEX Input Formats
10+
11+
As of the end of 2021, the ColorPicker supports both RGB and HEX formats as input through its [formats](/api/javascript/ui/colorpicker/configuration/formats) configuration. To choose the default format, you can use the [format](/api/javascript/ui/colorpicker/configuration/format) option:
12+
13+
```dojo
14+
<input id="rgb-picker" />
15+
<input id="hex-picker" />
16+
17+
<script>
18+
$("#rgb-picker").kendoColorPicker({
19+
preview: false,
20+
format: "rgb",
21+
formats: ["rgb", "hex"]
22+
});
23+
24+
$("#hex-picker").kendoColorPicker({
25+
preview: false,
26+
format: "hex",
27+
formats: ["rgb", "hex"]
28+
});
29+
</script>
30+
```
31+
32+
## See Also
33+
34+
* [RGB and HEX formats of the ColorPicker (Demo)](https://demos.telerik.com/kendo-ui/colorpicker/rgb-hex)
35+
* [JavaScript API Reference of the ColorPicker](/api/javascript/ui/colorpicker)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: Views
3+
page_title: jQuery ColorPicker Documentation | ColorPicker Views
4+
description: "Review the available views in the ColorPicker."
5+
slug: views_kendoui_colorpicker_widget
6+
position: 2
7+
---
8+
9+
# ColorPicker Views
10+
11+
As of the end of 2021, the ColorPicker has a new design. One of the introduced new features is the [views](/api/javascript/ui/colorpicker/configuration/views) configuration. It allows you to choose between a `gradient` and a `palette` view. You can also choose which the default view would be through the [view](/api/javascript/ui/colorpicker/configuration/view) option.
12+
13+
```dojo
14+
<input id="palette-picker" />
15+
<input id="gradient-picker" />
16+
<script>
17+
$("#palette-picker").kendoColorPicker({
18+
preview: false,
19+
view: "palette",
20+
views: ["gradient", "palette"]
21+
});
22+
23+
$("#gradient-picker").kendoColorPicker({
24+
preview: false,
25+
view: "gradient",
26+
views: ["gradient", "palette"]
27+
});
28+
</script>
29+
```
30+
31+
## See Also
32+
33+
* [Views of the ColorPicker (Demo)](https://demos.telerik.com/kendo-ui/colorpicker/views)
34+
* [JavaScript API Reference of the ColorPicker](/api/javascript/ui/colorpicker)

0 commit comments

Comments
 (0)