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

How to do Excel Export with multiple Worksheets

5 Answers 1594 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Noah asked on 14 Mar 2018, 12:34 PM

It looks like in the documentation there is support for generating workbooks with multiple sheets, but it is not clear to me how to do that.  Is there a declarative way that I am missing like 

 

<kendo-excelexport>

     <kendo-excelexport-sheet name="sheet1">

...columns for sheet 1

</kendo-excelexport-sheet>

     <kendo-excelexport-sheet name="sheet2">
...columns for sheet 2
</kendo-excelexport-sheet>

</kendo-excelexport>

5 Answers, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 16 Mar 2018, 06:40 AM
Hi Noah,

The desired functionality is not supported out-of-the-box, but can be achieved via some custom implementation. Here is an example of two separate arrays, exported to different excel sheets of the same excel workbook that can point you in the right direction:

http://plnkr.co/edit/1nuxnxXTlv3NMhC8JeDT?p=preview

For any functionality, features and enhancements that are currently not currently built-in, we strongly encourage submitting feature requests to our UserVoice portal:

http://kendoui-feedback.telerik.com/forums/555517-kendo-ui-for-angular-feedback

It is our primary indicator of customer interest in certain features, and helps us prioritize, based on the demand when updating our roadmap. If you have the time, please submit a request, describing the desired functionality and the use case for such an enhancement. Thank you in advance.

Regards,
Dimiter Topalov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Robert
Top achievements
Rank 1
answered on 03 Jul 2019, 11:49 AM
Hi Noah,

FYI...the Plunker link you posted is to a SPINNER EXAMPLE not an Excel example.

0
Dimiter Topalov
Telerik team
answered on 03 Jul 2019, 12:06 PM
Hi,

The Plunker is rather outdated, but the relevant code is still applicable. Here is a working Stackblitz demo with the same code and updated Angular and Kendo UI for Angular versions:

https://stackblitz.com/edit/angular-1n2udv?file=app/app.component.ts

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
keerthi
Top achievements
Rank 1
answered on 05 Mar 2020, 03:46 PM

 

how can we set the names for the generated sheets instead of Sheet1, sheet2 for dynamically. Can you provide an example for the below https://www.telerik.com/kendo-angular-ui/components/excelexport/how-to/export-to-separate-sheets/ concept where we are dynamically generating the sheets and generating to the workbook

 

0
Dimiter Topalov
Telerik team
answered on 09 Mar 2020, 11:31 AM

Hello Keerthi,

Each sheet name can be set via the respective WorkbookSheet "name" option:

https://www.telerik.com/kendo-angular-ui/components/excelexport/api/WorkbookSheet/#toc-workbooksheet

Here is the updated documentation example:

https://stackblitz.com/edit/angular-tppg62?file=app/app.component.ts

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dimiter Topalov
Telerik team
Robert
Top achievements
Rank 1
keerthi
Top achievements
Rank 1
Share this question
or