Blazor Grid Export ? { alternating Colors }

1 Answer 141 Views
Grid
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Deasun asked on 09 Jan 2023, 08:19 PM

When export the grid to excel is there a way to tell it to use the row colors the grid shows on the page?

 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Nadezhda Tacheva
Telerik team
answered on 12 Jan 2023, 09:28 AM

Hi Deasun,

The Grid allows you to customize the exported file before it reaches the client. It exposes Export Events that you can handle to set different options to the file or get the whole file and configure it as needed through the RadSpreadProcessing library.

The following knowledge base article demonstrates how to get the file in the OnAfterExport event to set background color to the desired cells:

Custom cell formatting of the exported file with RadSpreadProcessing

I hope it will help you with the implementation on your side. Please let us know if any other questions appear in the meantime.

Regards,
Nadezhda Tacheva
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
commented on 13 Jan 2023, 03:38 PM

Thanks.

Will review that.

Tags
Grid
Asked by
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Answers by
Nadezhda Tacheva
Telerik team
Share this question
or