This is a migrated thread and some comments may be shown as answers.

Excel Export on dynamically created Grid

1 Answer 66 Views
Wrappers for React
This is a migrated thread and some comments may be shown as answers.
Mihai
Top achievements
Rank 1
Mihai asked on 26 Feb 2019, 11:59 PM

Hello,

We have a dynamically created grid which needs to have an excel export feature.

Parent file:

import { ExcelExport } from '@progress/kendo-react-excel-export';

// Below constructor method

export default class EmailClients extends React.Component {
_export;
constructor(props) {
super(props);

export() {
   this._export.save();
}

// In render method

<button title="Export Excel" className="k-button k-primary" onClick={this.export}>Export to Excel</button>

<ExcelExport data={this.props.ctGeographGeoFigures} ref={(exporter) => { this._export = exporter; }}>
    <ClickTrackingGrid dataSource={this.props.ctGeographGeoFigures} />
</ExcelExport>

The Grid component is called like this:

 

1 Answer, 1 is accepted

Sort by
0
Mihai
Top achievements
Rank 1
answered on 27 Feb 2019, 12:13 AM

Please see newer post

https://www.telerik.com/forums/excel-export-on-dynamically-created-grid-01259588b464

Accidently posted this one and unable to delete it.

Thanks!

Tags
Wrappers for React
Asked by
Mihai
Top achievements
Rank 1
Answers by
Mihai
Top achievements
Rank 1
Share this question
or