How to use column Title(s) in exportSelectedToExcel headers

1 Answer 154 Views
Grid
Scot
Top achievements
Rank 1
Scot asked on 06 Feb 2023, 07:12 PM
When I export to Excel using the Export to Excel button in a kendo grid, the Excel file generated has the grid column titles as the Excel column headers.  Which is what I want.

When I export to Excel using the grid.exportSelectedToExcel(true), the generated file has the grid column fields as the Excel column headers.  I don't want the field names exposed.  How to prevent or change this?  Thank you.

Code:



Results for each type of export.  The top part of the image is the desired result.

1 Answer, 1 is accepted

Sort by
1
Accepted
Neli
Telerik team
answered on 09 Feb 2023, 10:02 AM

Hi Scot,

Thank you very much for reporting the issue.

The issue is a bug on our side and based on your report I logged a new issue in our official Feedback Portal on your behalf.

Below you will find a link to the item.

https://feedback.telerik.com/kendo-jquery-ui/1597043-the-titles-are-not-exported-to-excel-with-exportselectedtoexcel-method-in-grid

I am afraid that currently, I could not suggest a workaround. In case we find one we will update the item in the portal.

As a token of gratitude for reporting a bug, I have updated your Telerik points.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Scot
Top achievements
Rank 1
commented on 09 Feb 2023, 07:56 PM

Thank you Neli, I appreciate your acknowledgement.
Tags
Grid
Asked by
Scot
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or