Skip to content

Commit c2a9561

Browse files
BrianDXNatalia Kazakova (DevExpress)natakazakovaserge-andreyev
authored
CrosstabControl for Web (#158)
* add map info * fix year * cross tab instead of pivot grid * cross tab instead of pivot grid Co-authored-by: Natalia Kazakova (DevExpress) <[email protected]> Co-authored-by: Natalia Kazakova <[email protected]> Co-authored-by: serge-andreyev <[email protected]>
1 parent 3cc0215 commit c2a9561

File tree

50 files changed

+131
-124
lines changed

Some content is hidden

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

50 files changed

+131
-124
lines changed

interface-elements-for-web/articles/report-designer/configure-design-settings/enable-the-right-to-left-layout.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ The following controls support this feature:
2626
* [Check Box](../use-report-elements/use-basic-report-controls/check-box.md)
2727
* [Page Info](../use-report-elements/use-basic-report-controls/page-info.md)
2828
* [Panel](../use-report-elements/use-basic-report-controls/panel.md)
29-
* [Pivot Grid](../use-report-elements/use-charts-and-pivot-grids.md)
29+
* [Cross Tab](../create-reports/cross-tab-reports.md)
30+
* Pivot Grid (deprecated)
3031
* [Table](../use-report-elements/use-tables.md)
3132
* [Table of Contents](../use-report-elements/use-basic-report-controls/table-of-contents.md)
3233

interface-elements-for-web/articles/report-designer/create-reports.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ This section contains tutorials that explain how to create different reports.
3838

3939
### [Cross-Tab Reports](create-reports/cross-tab-reports.md)
4040

41-
![](../../images/cross-tab-report-preview.png)
42-
43-
> [!Note]
44-
> See the [Use Charts and Pivot Grids](use-report-elements/use-charts-and-pivot-grids.md) documentation section for information on how to use Pivot Grids and Charts in your reports.
41+
![](../../images/eurd-web-cross-tab-report-result.png)
4542

4643
## Multi-Column Reports
4744

interface-elements-for-web/articles/report-designer/create-reports/cross-tab-reports.md

Lines changed: 83 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,69 +4,122 @@ author: Anna Vekhina
44
---
55
# Cross-Tab Reports
66

7-
A cross-tab report displays complex multi-dimensional data, such as summary statistics, surveys, and market research information. This report uses a Pivot Grid control that calculates automatic summaries and grand totals across grouped rows and columns.
7+
A cross-tab report displays complex multi-dimensional data, such as summary statistics, surveys, and market research information. This report uses a Cross Tab control that calculates automatic summaries and grand totals across grouped rows and columns.
88

99
![](../../../images/eurd-web-cross-tab-report-result.png)
1010

11-
## Add a Pivot Grid and Bind It to Data
11+
## Add a Cross Tab Control and Bind to Data
1212

1313
1. [Create a new report](../add-new-reports.md) or [open an existing one](../open-reports.md).
1414

15-
2. Drop the **Pivot Grid** control from the [Toolbox](../report-designer-tools/toolbox.md) onto the [Detail band](../introduction-to-banded-reports.md).
15+
2. Drop the **Cross Tab** control from the [Toolbox](../report-designer-tools/toolbox.md) onto the [Detail band](../introduction-to-banded-reports.md).
1616

17-
![](../../../images/eurd-web-add-pivot-grid-to-report.png)
17+
![](../../../images/eurd-web-add-cross-tab-to-report.png)
1818

19-
You cannot place a Pivot Grid in another report control (for example, [Table Cell](../use-report-elements/use-tables.md) or [Panel](../use-report-elements/use-basic-report-controls/panel.md)) because its width cannot be determined at design time.
19+
You cannot place a Cross Tab in another report control ([Table Cell](../use-report-elements/use-tables.md) or [Panel](../use-report-elements/use-basic-report-controls/panel.md)).
2020

2121
3. Invoke the designer [menu](../report-designer-tools/menu.md) and click **Add Data Source...**.
2222

2323
![](../../../images/eurd-web-add-data-source-menu.png)
2424

2525
Navigate through the invoked [Data Source Wizard](../report-designer-tools/data-source-wizard.md)'s pages to set up the data source. See the [Bind to Data](../bind-to-data.md) section for more information.
2626

27-
3. After the data source is created, you can specify the Pivot Grid's **Data Source** and **Data Member** properties. Expand the **Actions** category and to bind the Pivot Grid to data.
27+
4. Select the entire Cross Tab control. For this, click the designer surface outside the control and drag the mouse to the control until the entire control is selected.
2828

29-
![](../../../images/eurd-web-cross-tab-pivot-grid-bind-to-data-source.png)
29+
![](../../../images/eurd-web-select-cross-tab-control.gif)
30+
31+
5. Bind the Cross Tab control to the data source. In the [Properties Panel](../report-designer-tools/ui-panels/properties-panel.md) expand the **CROSS TAB TASKS** section and specify the **Data Source** and **Data Member** properties.
32+
33+
![](../../../images/eurd-web-cross-tab-bind-to-data-source.png)
3034

3135
> [!NOTE]
32-
> Ensure that a report's **Data Source** property is not set if you place the Pivot Grid in the Detail band. Otherwise, the Pivot Grid data is printed as many times as there are rows in the report data source.
36+
> Ensure that a report's **Data Source** property is not set if you place the Cross Tab in the Detail band. Otherwise, the Cross Tab data is printed as many times as there are rows in the report data source.
37+
38+
39+
## Define Cross Tab Fields
40+
41+
1. In the **Properties Panel**, expand the **DATA** section and click **plus** in the **ROW FIELDS** section to add a Row Field. Select the field name from the drop-down list:
42+
43+
![](../../../images/eurd-web-cross-tab-specify-row.png)
44+
45+
You can repeat these steps to add another row field.
46+
47+
2. In the **Properties Panel**, expand the **DATA** section and click **plus** in the **COLUMN FIELDS** section to add a Column Field. Select the field from the drop-down list:
48+
49+
![](../../../images/eurd-web-cross-tab-specify-column.png)
50+
51+
You can repeat these steps to add another column field.
52+
53+
54+
3. In the **Properties Panel**, expand the **DATA** section and click **plus** in the **DATA FIELDS** section to add a Data Field. Select the field from the drop-down list:
55+
56+
![](../../../images/eurd-web-cross-tab-specify-data.png)
57+
58+
59+
The resulting cross-tab control looks as follows:
60+
61+
![](../../../images/eurd-web-cross-tab-fields-defined.png)
62+
63+
64+
## Specify Group Settings
65+
66+
Select the Cross Tab cell bound to the `OrderDate` field and click its smart tag. Set the **GroupInterval** property to `DateQuarter` to group data by quarters.
67+
68+
![](../../../images/eurd-web-cross-tab-group-quarter.png)
69+
70+
Switch to the **Report Viewer** to preview the result:
71+
72+
![](../../../images/eurd-web-cross-tab-preview-group-quarter.png)
73+
74+
## Format Data
75+
76+
1. Format the currency data. Hold down CTRL, and select the following cells:
77+
78+
- the cell bound to the `ExtendedPrice` field
79+
- the cells that display column and row totals
80+
- the cells that display column and row grand totals
81+
82+
![](../../../images/eurd-web-cross-tab-select-currency-data-cells.png)
83+
84+
Switch to the Properties window and set the `TextFormatString` property to **{0:c}**.
85+
86+
![](../../../images/eurd-web-cross-tab-format-currency-data-cells.png)
87+
88+
2. Select the cell bound to the `OrderDate` field:
89+
90+
![](../../../images/eurd-web-cross-tab-select-order-date-cell.png)
3391

92+
Set the **Text Format String** option to `Quarter {0}`.
3493

35-
## Define the Pivot Grid's Content
94+
![](../../../images/eurd-web-cross-tab-format-order-date-cell.png)
3695

37-
1. To add a field to the particular grid area, expand the **Actions** category and click one of the following buttons.
96+
Switch to the Report Viewer to observe the result:
3897

39-
| Icon | Description |
40-
|---|---|
41-
| ![](../../../images/eurd-web-cross-tab-add-filter-header.png) | Adds a field to the **Filter Header** area. This field is available for further customizations. |
42-
| ![](../../../images/eurd-web-cross-tab-add-data-header.png) | Adds a field to the **Data Header** area. The summaries will be calculated for all the cells, each cell is identified by a specific column and row. |
43-
| ![](../../../images/eurd-web-cross-tab-add-column-header.png) | Adds a field to the **Column Header** area. This field's values will represent column headers. |
44-
| ![](../../../images/eurd-web-cross-tab-add-row-header.png) | Adds a field to the **Row Header** area. This field's values will represent row headers.|
98+
![](../../../images/eurd-web-cross-tab-format-data-result.png)
4599

46-
Use these buttons to define the Pivot Grid's layout.
47100

48-
![](../../../images/eurd-web-cross-tab-pivot-grid-layout.png)
101+
## Customize Appearance
49102

50-
2. To adjust a Pivot Grid field, select the required grid field on the design surface, switch to the **Properties panel** and expand the **Actions** category. Specify the **Data Column Name** property to bind a grid field to a data source field.
103+
1. Select the entire Cross Tab control, switch to the Properties window, and expand the **STYLES** section. Expand the **GENERAL STYLE** section and set the Border Color to 160, 160, 160. This value applies to all Cross Tab cells.
51104

52-
![](../../../images/eurd-web-cross-tab-pivot-grid-content.png)
105+
![](../../../images/eurd-web-cross-tab-styles.png)
53106

54-
You can also specify the field position, using the **Area** property or change the order of fields within their area, specifying the **Area Index** property. If required, it is possible to customize many other properties for the Pivot Grid and its fields.
107+
2. Expand sections for the **HEADER AREA**, **DATA AREA** and **TOTAL AREA** styles and adjust the appearance as your needs dictate.
55108

56-
## Adjust the Pivot Grid's Layout
109+
## Adjust the Content Size
57110

58-
Set the report's **Vertical Content Splitting** property to **Smart** to split the Pivot Grid along the column borders if it does not fit the report's page in Print Preview.
111+
Select the column bound to the **FullName** field and set the `ColumnAutoWidthMode` property to **ShrinkAndGrow**. The column width varies depending on the content.
59112

60-
![](../../../images/eurd-web-cross-tab-vertical-content-splitting.png)
113+
![Set Column Auto Width Property](../../../images/eurd-web-cross-tab-report-column-auto-width-mode.png)
61114

115+
## Adjust the Report Layout
62116

63-
## Specify the Pivot Grid's Print Options
64-
Use the **Options** category's **Print Options** section to specify print options and define which Pivot Grid elements are printed.
117+
Specify the **Landscape** page orientation and set the **Vertical Content Splitting** option to `Smart` to prevent content from being split across pages.
65118

66-
* Set the **Print Data Headers** property to **No** to prevent data fields' headers from being printed.
119+
![Adjust the Layout](../../../images/eurd-web-cross-tab-report-adjust-layout.png)
67120

68-
* Enable the **Print Row Area On Every Page** property to repeat row headers on each document page when the Pivot Grid's layout is divided horizontally across several pages.
121+
## Observe the Result
69122

70-
![](../../../images/eurd-web-cross-tab-print-options.png)
123+
Switch to the **Report Viewer**. The resulting report is shown below:
71124

72-
Switch to [Print Preview](../preview-print-and-export-reports.md) to see the resulting report.
125+
![Resulting Report](../../../images/eurd-web-cross-tab-report-final-result.png)

interface-elements-for-web/articles/report-designer/lay-out-dynamic-report-content/keep-content-together.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ Enabling this property for a single control makes the same band's controls behav
1717
Use the band's **Keep Together** property to enable this feature for all controls within a specific band.
1818

1919
> [!NOTE]
20-
> This feature is not available for the [Chart](../use-report-elements/use-charts-and-pivot-grids/use-charts-in-reports.md), [Sparkline](../use-report-elements/use-gauges-and-sparklines/add-sparklines-to-a-report.md) and [Subreport](../use-report-elements/use-basic-report-controls/subreport.md) controls.
20+
> This feature is not available for the [Chart](../use-report-elements/use-charts.md), [Sparkline](../use-report-elements/use-gauges-and-sparklines/add-sparklines-to-a-report.md) and [Subreport](../use-report-elements/use-basic-report-controls/subreport.md) controls.
2121
2222
In a master-detail report, you can print the detail band on the same page as the detail report band using the detail band's **Keep Together with Detail Reports** property.

interface-elements-for-web/articles/report-designer/report-designer-tools/chart-designer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: Anna Vekhina
77

88
## Chart Designer Overview
99

10-
The **Chart Designer** allows you to quickly create and customize [charts](../use-report-elements/use-charts-and-pivot-grids.md) in the [End-User Report Designer](../../report-designer.md).
10+
The **Chart Designer** allows you to quickly create and customize [charts](../use-report-elements/use-charts.md) in the [End-User Report Designer](../../report-designer.md).
1111

1212
![](../../../images/eurd-web-chart-designer.png)
1313

interface-elements-for-web/articles/report-designer/report-designer-tools/toolbox.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ The following controls are connected to data individually, without accessing a r
2828

2929

3030

31-
| ![](../../../images/eurd-web-toolbox-chart.png) | ![](../../../images/eurd-web-toolbox-pivot-grid.png) | ![](../../../images/eurd-web-toolbox-sparkline.png) |
31+
| ![](../../../images/eurd-web-toolbox-chart.png) | ![](../../../images/eurd-web-toolbox-cross-tab.png) | ![](../../../images/eurd-web-toolbox-sparkline.png) |
3232
| ------------------------------------------------------------- | ------------------------------------------------------------------ | -------------------------------------------------------------------- |
33-
| [Chart](..\use-report-elements\use-charts-and-pivot-grids.md) | [Pivot Grid](..\use-report-elements\use-charts-and-pivot-grids.md) | [Sparkline](..\use-report-elements\use-gauges-and-sparklines\add-sparklines-to-a-report.md) |
33+
| [Chart](..\use-report-elements\use-charts.md) | [Cross Tab](..\create-reports\cross-tab-reports.md) | [Sparkline](..\use-report-elements\use-gauges-and-sparklines\add-sparklines-to-a-report.md) |
3434

3535

3636

interface-elements-for-web/articles/report-designer/shape-report-data/use-report-parameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ Use report parameters in the following cases:
4848

4949
The following controls have internal collections of parameters. You can bind these internal parameters to report parameters.
5050

51-
* **[Chart](../use-report-elements/use-charts-and-pivot-grids/use-charts-in-reports.md)**
51+
* **[Chart](../use-report-elements/use-charts.md)**
5252

53-
[Filter chart data](../use-report-elements/use-charts-and-pivot-grids/use-charts-to-visualize-grouped-data.md) by parameters.
53+
[Filter chart data](../use-report-elements/use-charts/use-charts-to-visualize-grouped-data.md) by parameters.
5454

5555
* **[Subreport](../use-report-elements/use-basic-report-controls/subreport.md)**
5656

interface-elements-for-web/articles/report-designer/use-expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The Expression Editor displays all the errors it finds in the specified expressi
3838

3939
## Filter Editor
4040

41-
The Report Designer's [Filter Editor](report-designer-tools/filter-editor.md) allows you to specify filter criteria for a report or [Chart](use-report-elements/use-charts-and-pivot-grids.md)'s series.
41+
The Report Designer's [Filter Editor](report-designer-tools/filter-editor.md) allows you to specify filter criteria for a report.
4242

4343
The Filter Editor provides a visual interface where you can use an unlimited number of conditions and combine them with logical operators to create filter criteria. You can also switch to the Advanced Mode and type a filter string.
4444

interface-elements-for-web/articles/report-designer/use-report-elements.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The documents in this section describe how to use various controls in a report,
1313
* [Use Basic Report Controls](use-report-elements/use-basic-report-controls.md)
1414
* [Use Tables](use-report-elements/use-tables.md)
1515
* [Use Barcodes](use-report-elements/use-bar-codes.md)
16-
* [Use Charts and Pivot Grids](use-report-elements/use-charts-and-pivot-grids.md)
16+
* [Use Charts](use-report-elements/use-charts.md)
17+
* [Use Cross Tab](create-reports/cross-tab-reports.md)
1718
* [Use Gauges and Sparklines](use-report-elements/use-gauges-and-sparklines.md)
1819
* [Draw Lines and Shapes](use-report-elements/draw-lines-and-shapes.md)

interface-elements-for-web/articles/report-designer/use-report-elements/manipulate-report-elements/add-report-controls-to-containers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A [table cell](../use-tables.md) can also act as a container for other controls.
1717
![](../../../../images/eurd-web-add-checkbox-to-tablecell.png)
1818

1919
Both panel and table cell cannot contain the following report controls:
20-
* [Pivot Grid](../use-charts-and-pivot-grids.md)
20+
* [Cross Tab](../../create-reports/cross-tab-reports.md)
2121
* [Subreport](../use-basic-report-controls/subreport.md)
2222
* [Page Break](../use-basic-report-controls/page-break.md)
2323
* [Table of Contents](../use-basic-report-controls/table-of-contents.md)

0 commit comments

Comments
 (0)