Skip to content

Commit fe0d1f4

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent ab00e48 commit fe0d1f4

File tree

10 files changed

+161
-52
lines changed

10 files changed

+161
-52
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "year": 2022, "release": 1 }
1+
{ "year": 2021, "release": 3, "servicePack": "next", "servicePackNumber": 1 }

docs/api/javascript/ui/flatcolorpicker.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,33 @@ Specifies the initially selected color.
133133
});
134134
</script>
135135

136+
### view `String` *(default: "gradient")*
137+
138+
The initially selected view in the FlatColorPicker.
139+
140+
#### Example
141+
142+
<div id="flatcolorpicker"></div>
143+
<script>
144+
$("#colorpicker").kendoFlatColorPicker({
145+
view: "palette"
146+
});
147+
</script>
148+
149+
### views `Array` *(default: [ "gradient", "palette" ])*
150+
151+
The available views in the FlatColorPicker. Valid values are "gradient" and "palette".
152+
153+
#### Example
154+
155+
<div id="flatcolorpicker"></div>
156+
<script>
157+
$("#colorpicker").kendoFlatColorPicker({
158+
view: "palette",
159+
views: ["palette"]
160+
});
161+
</script>
162+
136163
### preview `Boolean` *(default: true)*
137164

138165
Specifies whether a selected and previous color are displayed for color comparison. with autoupdate set to true both selected and previous colors will be updated.

docs/api/javascript/ui/grid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10773,7 +10773,7 @@ Gets an array that holds the id field values of the selected rows.
1077310773

1077410774
### setDataSource
1077510775

10776-
Sets the data source of the widget.
10776+
Sets the data source of the widget. The new dataSource will override the configurations and data of the old one.
1077710777

1077810778
#### Parameters
1077910779

docs/api/javascript/ui/pivotconfiguratorv2.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,36 @@ The text of the "not equal" filter operator.
888888
});
889889
</script>
890890

891+
### orientation `String` *(default: "vertical")*
892+
893+
Defines a value indicating the type of layout that the configurator has. Possible values are:
894+
895+
- "vertical"
896+
- "horizontal"
897+
898+
#### Example
899+
900+
<div id="configurator"></div>
901+
<script>
902+
$("#configurator").kendoPivotConfiguratorV2({
903+
filterable: true,
904+
orientation: "horizontal",
905+
dataSource: {
906+
type: "xmla",
907+
columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],
908+
rows: [{ name: "[Product].[Product]" }],
909+
measures: ["[Measures].[Internet Sales Amount]"],
910+
transport: {
911+
connection: {
912+
catalog: "Adventure Works DW 2008R2",
913+
cube: "Adventure Works"
914+
},
915+
read: 'https://demos.telerik.com/olap/msmdpump.dll'
916+
}
917+
}
918+
});
919+
</script>
920+
891921
## Fields
892922

893923
### dataSource `kendo.data.PivotDataSourceV2`

docs/controls/data-management/pivotgrid/how-to/dimensions/expand-multiple-dimensions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ The following example demonstrates how to expand multiple column dimensions by u
2222
<script>
2323
$(document).ready(function () {
2424
var paths = [
25-
//Expand CY 2005 - first dimension
26-
["[Date].[Calendar].[Calendar Year].&[2005]"],
27-
//Expand All Products under CY 2015 - second dimension
28-
["[Date].[Calendar].[Calendar Year].&[2005]","[Product].[Category].[All Products]"]
25+
//Expand CY 2010 - first dimension
26+
["[Date].[Calendar].[Calendar Year].&[2010]"],
27+
//Expand All Products under CY 2010 - second dimension
28+
["[Date].[Calendar].[Calendar Year].&[2010]","[Product].[Category].[All Products]"]
2929
];
3030
3131
var pivotgrid = $("#pivotgrid").kendoPivotGrid({

docs/controls/data-management/pivotgrid/overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Kendo UI PivotGrid represents multidimensional data in a cross-tabular forma
1212

1313
* [Demo page for the PivotGrid](https://demos.telerik.com/kendo-ui/pivotgrid/index)
1414

15-
> Тhe new PivotGridV2 is now available. It offers a brand new design and a new future-proof architecture that allows the implementation of many upcoming functionalities. As PivotGridV2 aims to replace the legacy PivotGrid, it is recommended to use the PivotGridV2 in your new projects. For information about the new PivotGridV2, refer to the [PivotGridV2 Overview]({% slug overview_kendoui_pivotgridv2_widget %}) article.
15+
> Тhe new PivotGridV2 is now available. It offers a brand new design and a new future-proof architecture that allows the implementation of many upcoming functionalities. As PivotGridV2 aims to replace the legacy PivotGrid, it is recommended to use the PivotGridV2 in your new projects. For information about the differences between the PivotGrid and PivotGridV2, refer to the [Comparison]({% slug comparison_kendoui_pivotgridv2 %}) article.
1616
1717
## Basic Configuration
1818

@@ -60,6 +60,7 @@ The previous example outputs the following result.
6060
## Functionality and Features
6161

6262
* [Data binding]({% slug databinding_kendoui_pivotgrid %})
63+
* [Comparison with the PivotGridV2]({% slug comparison_kendoui_pivotgridv2 %})
6364
* [Filtering]({% slug filtering_kendoui_pivotgrid %})
6465
* [Sorting]({% slug sorting_kendoui_pivotgrid %})
6566
* [Excel export]({% slug excelexport_functionality_pivotgrid %})
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
title: Comparison
3+
page_title: jQuery PivotGridV2 Documentation | Comparison
4+
description: "Learn about the differences between the old and the new version of the Kendo UI PivotGrid widget."
5+
slug: comparison_kendoui_pivotgridv2
6+
position: 2
7+
---
8+
9+
# Comparison
10+
11+
As of the November 2021 release, Kendo UI introduces the brand new PivotGridV2 which aims to replace the old Kendo UI PivotGrid. In this article you will learn about the major differences between the two widgets and what to expect in the future.
12+
13+
- [Why Do Two PivotGrid Widgets Exist?](#why-do-two-pivotgrid-widgets-exist)
14+
- [What Can I Expect from the New PivotGridV2?](#what-can-i-expect-from-the-new-pivotgridv2)
15+
- [New Engine](#new-engine)
16+
- [Performance](#performance)
17+
- [Design](#design)
18+
- [Customization](#customization)
19+
- [Summary](#summary)
20+
21+
## Why Do Two PivotGrid Widgets Exist?
22+
23+
There are many developers who use and depend on the PivotGrid. Making any drastic changes to the source code of the old widget would undoubtedly interfere with their work. That is why the decision to introduce a second widget, was taken.
24+
25+
Тhe old and new versions of the PivotGrid can coexist. The old PivotGrid will not disappear with the upcoming release. This allows developers to smoothly transition to the new version without rushing their projects.
26+
27+
## What Can I Expect from the New PivotGridV2?
28+
29+
The new PivotGridV2 has improved performance, brand new design and is easier to customize.
30+
31+
### New Engine
32+
33+
The engine for the new PivotGridV2 is a cross-team development effort, meaning that it will be used by multiple different Kendo suites such as JQuery, Angular, React, and so on. This approach will ultimately lead to the implementation of many new features as all of them will be shared between the different products.
34+
35+
### Performance
36+
37+
Performance is another important aspect that is improved in the new PivotGridV2. Merging newly requested data on top of the already present data in the widget, will be much faster.
38+
39+
### Design
40+
41+
The new PivotGridV2 has a brand new design and some additional basic UX functionalities such as hiding the [`configurator`]({% slug overview_kendoui_pivotconfiguratorv2 %}) when it is not in use. This approach will provide the end user with much better experience when working with the widget.
42+
43+
### Customization
44+
45+
The new PivotGridV2 will be easier to customize when it comes down to functionalities such as data aggregation.
46+
47+
## Summary
48+
49+
Developers are encouraged to use the PivotGridV2 when starting new projects.
50+
51+
Here's a quick summary to outline the benefits of the new PivotGridV2:
52+
53+
- Brand-new engine which allows for quicker implementation of features and quicker bugfixes.
54+
- Improved performance of the entire widget.
55+
- Brand new design.
56+
- Easier to customize compared to the old PivotGrid.
57+
- Improved API as new features are implemented.
58+
59+
## See Also
60+
61+
* [Basic Usage of the PivotGridV2 (Demo)](https://demos.telerik.com/kendo-ui/pivotgridv2/index)
62+
* [PivotGridV2 JavaScript API Reference](/api/javascript/ui/pivotgridv2)

docs/controls/data-management/pivotgridv2/overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Kendo UI PivotGridV2 represents multidimensional data in a cross-tabular for
1212

1313
* [Demo page for the PivotGridV2](https://demos.telerik.com/kendo-ui/pivotgridv2/index)
1414

15-
Compared to the legacy PivotGrid, the new PivotGridV2 offers a brand new design, and its future-proof architecture allows the implementation of many upcoming functionalities. As PivotGridV2 aims to replace the legacy PivotGrid, it is recommended to use the PivotGridV2 in your new projects. For information about the legacy PivotGrid, refer to the [PivotGrid Overview]({% slug overview_kendoui_pivotgrid_widget %}) article.
15+
Compared to the legacy PivotGrid, the new PivotGridV2 offers a brand new design, and its future-proof architecture allows the implementation of many upcoming functionalities. As PivotGridV2 aims to replace the legacy PivotGrid, it is recommended to use the PivotGridV2 in your new projects. For information about the differences between the PivotGrid and PivotGridV2, refer to the [Comparison]({% slug comparison_kendoui_pivotgridv2 %}) article.
1616

1717
## Basic Configuration
1818

@@ -52,6 +52,7 @@ The following image demonstrates the output from the previous example.
5252
## Functionality and Features
5353

5454
* [Data binding]({% slug databinding_kendoui_pivotgridv2 %})
55+
* [Comparison with the PivotGrid]({% slug comparison_kendoui_pivotgridv2 %})
5556
* [Templates]({% slug templates_kendoui_pivotgridv2 %})
5657
* [PDF export]({% slug pdfexport_kendoui_pivotgridv2 %})
5758

docs/knowledge-base/barcode-how-to-print-the-barcode.md

Lines changed: 31 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -44,48 +44,35 @@ How can I print the Kendo UI Barcode?
4444
Open a new window and place the Barcode DOM elements on the page.
4545

4646
```dojo
47-
<button class="k-button">Print</button>
48-
<div id="toPrint">
49-
<span id="manchego"></span>
50-
</div>
51-
52-
<script>
53-
$(document).ready(function () {
54-
$("#manchego").kendoBarcode({
55-
value: "2346722",
56-
type: "ean8"
57-
});
58-
59-
$('button').click(function(){
60-
61-
62-
var divToPrint=document.getElementById('toPrint');
63-
64-
var newWin=window.open('','Print-Window');
65-
66-
newWin.document.open();
67-
68-
newWin.document.write('<html><head> <link href="https://kendo.cdn.telerik.com/' + kendo.version + '/styles/kendo.common.min.css" rel="stylesheet" /></head> <body onload="window.print()">'+divToPrint.innerHTML+'</body></html>');
69-
70-
newWin.document.close();
71-
72-
73-
})
74-
75-
});
76-
</script>
77-
<style scoped>
78-
79-
#manchego svg{
80-
width: 102mm !important;
81-
height: 192mm !important;;
82-
}
83-
84-
@media print{
85-
#manchego svg{
86-
width: 102mm !important;;
87-
height: 192mm !important;;
88-
}
89-
}
90-
</style>
47+
<button class="k-button">Print</button>
48+
<div id="toPrint">
49+
<span id="manchego"></span>
50+
</div>
51+
<script>
52+
$(document).ready(function () {
53+
$("#manchego").kendoBarcode({
54+
value: "2346722",
55+
type: "ean8"
56+
});
57+
$('button').click(function(){
58+
var divToPrint=document.getElementById('toPrint');
59+
var newWin=window.open('','Print-Window');
60+
newWin.document.open();
61+
newWin.document.write('<html><head> <link href="https://kendo.cdn.telerik.com/' + kendo.version + '/styles/kendo.common.min.css" rel="stylesheet" /></head> <body onload="window.print()">'+divToPrint.innerHTML+'</body></html>');
62+
newWin.document.close();
63+
})
64+
});
65+
</script>
66+
<style>
67+
#manchego svg{
68+
width: 102mm !important;
69+
height: 192mm !important;;
70+
}
71+
@media print{
72+
#manchego svg{
73+
width: 102mm !important;;
74+
height: 192mm !important;;
75+
}
76+
}
77+
</style>
9178
```

typescript/kendo.all.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8305,6 +8305,7 @@ declare namespace kendo.ui {
83058305
sortable?: boolean|any;
83068306
height?: number|string;
83078307
messages?: PivotConfiguratorV2Messages;
8308+
orientation?: string;
83088309
}
83098310
interface PivotConfiguratorV2Event {
83108311
sender: PivotConfiguratorV2;

0 commit comments

Comments
 (0)