Skip to content

Commit 836f37e

Browse files
authored
Modify toolbar export options for the grids (#1004)
1 parent 4470000 commit 836f37e

6 files changed

Lines changed: 20 additions & 37 deletions

File tree

samples/grids/grid/excel-exporting/src/index.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,9 @@ export default class Sample extends React.Component<any, any> {
6060
id="grid"
6161
groupingExpressions={this.groupingExpression1}
6262
hideGroupedColumns={true}>
63-
<IgrGridToolbar
64-
>
65-
<IgrGridToolbarActions
66-
>
67-
<IgrGridToolbarExporter
68-
exportCSV={false}
69-
exportExcel={true}>
63+
<IgrGridToolbar>
64+
<IgrGridToolbarActions>
65+
<IgrGridToolbarExporter>
7066
</IgrGridToolbarExporter>
7167
</IgrGridToolbarActions>
7268
</IgrGridToolbar>

samples/grids/grid/multi-column-headers-export/src/index.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,16 @@ export default class Sample extends React.Component<any, any> {
4747
data={this.customersData}
4848
moving={true}
4949
allowFiltering={true}>
50-
<IgrGridToolbar
51-
>
52-
<IgrGridToolbarActions
53-
>
54-
<IgrGridToolbarHiding
55-
>
50+
<IgrGridToolbar>
51+
<IgrGridToolbarActions>
52+
<IgrGridToolbarHiding>
5653
</IgrGridToolbarHiding>
57-
<IgrGridToolbarPinning
58-
>
54+
<IgrGridToolbarPinning>
5955
</IgrGridToolbarPinning>
6056
<IgrGridToolbarExporter
6157
exportCSV={false}
6258
exportExcel={true}
59+
exportPDF={true}
6360
onExportStarted={this.webGridExportEventMultiColumnHeaders}>
6461
</IgrGridToolbarExporter>
6562
</IgrGridToolbarActions>

samples/grids/hierarchical-grid/excel-exporting/src/index.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,9 @@ export default class Sample extends React.Component<any, any> {
4343
primaryKey="ID"
4444
allowFiltering={true}
4545
filterMode="excelStyleFilter">
46-
<IgrGridToolbar
47-
>
48-
<IgrGridToolbarActions
49-
>
50-
<IgrGridToolbarExporter
51-
exportCSV={false}
52-
exportExcel={true}>
46+
<IgrGridToolbar>
47+
<IgrGridToolbarActions>
48+
<IgrGridToolbarExporter>
5349
</IgrGridToolbarExporter>
5450
</IgrGridToolbarActions>
5551
</IgrGridToolbar>

samples/grids/hierarchical-grid/multi-column-headers-export/src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export default class Sample extends React.Component<any, any> {
5454
<IgrGridToolbarExporter
5555
exportCSV={false}
5656
exportExcel={true}
57+
exportPDF={true}
5758
onExportStarted={this.webHierarchicalGridExportMultiColumnHeaders}>
5859
</IgrGridToolbarExporter>
5960
</IgrGridToolbarActions>

samples/grids/tree-grid/excel-exporting/src/index.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,9 @@ export default class Sample extends React.Component<any, any> {
3838
id="treeGrid"
3939
data={this.employeesNestedData}
4040
childDataKey="Employees">
41-
<IgrGridToolbar
42-
>
43-
<IgrGridToolbarActions
44-
>
45-
<IgrGridToolbarExporter
46-
exportCSV={false}
47-
exportExcel={true}>
41+
<IgrGridToolbar>
42+
<IgrGridToolbarActions>
43+
<IgrGridToolbarExporter>
4844
</IgrGridToolbarExporter>
4945
</IgrGridToolbarActions>
5046
</IgrGridToolbar>

samples/grids/tree-grid/multi-column-headers-export/src/index.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,16 @@ export default class Sample extends React.Component<any, any> {
4242
data={this.employeesFlatDetails}
4343
foreignKey="ParentID"
4444
primaryKey="ID">
45-
<IgrGridToolbar
46-
>
47-
<IgrGridToolbarActions
48-
>
49-
<IgrGridToolbarPinning
50-
>
45+
<IgrGridToolbar>
46+
<IgrGridToolbarActions>
47+
<IgrGridToolbarPinning>
5148
</IgrGridToolbarPinning>
52-
<IgrGridToolbarHiding
53-
>
49+
<IgrGridToolbarHiding>
5450
</IgrGridToolbarHiding>
5551
<IgrGridToolbarExporter
5652
exportCSV={false}
5753
exportExcel={true}
54+
exportPDF={true}
5855
onExportStarted={this.webGridExportEventMultiColumnHeaders}>
5956
</IgrGridToolbarExporter>
6057
</IgrGridToolbarActions>

0 commit comments

Comments
 (0)