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

grid excel export - custom rows?

1 Answer 370 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Veteran
Daniel asked on 07 May 2020, 09:43 PM

Is it possible to add arbitrary data before the contents of the grid in the export?  For example, if I wanted to put a persons name and today's date, then below that I wanted to show the contents of the grid.  Is it possible to add these custom rows to the export?

 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 08 May 2020, 01:50 PM

Hello, Daniel

This can be done by customizing the workbook that will be exported. In this case, we have to add new rows to the current rows collection:

https://stackblitz.com/edit/react-cnwfqw-4rvl3j?file=app/main.jsx

Also, these are all properties that can be added to a cell:

https://www.telerik.com/kendo-react-ui/components/excelexport/api/WorkbookSheetRowCell/

I hope this is helpful.

Regards,
Stefan
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Daniel
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Share this question
or