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

Example of Excel Export of Both Parent and Child Grid Data

1 Answer 317 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
GokuJim
Top achievements
Rank 1
GokuJim asked on 08 Aug 2019, 12:30 PM

We have a requirement to functionally export our grid data using the ExcelExport module. I have successfully used your given examples to export a single grid's data. However, I don't see any examples of performing an ExcelExport of both a Parent and Child grids' data in the documentation.

1) Is it possible to do this?

2) Can you provide an example (if possible) of performing an ExcelExport of both a Parent and Child grids' data?

Thanks again for your excellent support.

Jim

SKF USA, Inc.

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 08 Aug 2019, 12:58 PM
Hello, James,

Yes, this is possible.

It requires using a chain of Promises to request the data for all child Grids and append it to the exported document after each parent row item.

This is an example showcasing this. The example contains comments for the most specific parts:

https://stackblitz.com/edit/react-2satdb?file=index.js

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
GokuJim
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or