Excel Export on dynamically created Grid

2 posts, 0 answers
  1. Mihai
    Mihai avatar
    17 posts
    Member since:
    Sep 2018

    Posted 26 Feb 2019 Link to this post

    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:

     

  2. Mihai
    Mihai avatar
    17 posts
    Member since:
    Sep 2018

    Posted 26 Feb 2019 in reply to Mihai Link to this post

    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!

Back to Top