Export RadGridView to html (with groups, summary row, images,...)

1 Answer 36 Views
GridView
Pin
Top achievements
Rank 1
Iron
Pin asked on 08 Jan 2022, 12:27 PM

Hi

How can I export RadGridview to html format?

Note: My gridview contains groups , summary row, and also image column.

 

Thanks so much

1 Answer, 1 is accepted

Sort by
0
Pin
Top achievements
Rank 1
Iron
answered on 11 Jan 2022, 07:02 PM | edited on 12 Jan 2022, 09:44 AM

UPDATE: I found this tutorial & it helped me a lot:

https://docs.telerik.com/devtools/winforms/controls/gridview/exporting-data/html-export

but still have a few questions:

1- How do I know when the export operation is complete?

2- How can I specify a style for whole table (and not for every cell individually)? the "HTMLCellFormatting" event works for each cell not whole table.

3- Can grouped data be exported as collapsible/expandable table in html?

 

Thanks in advance

Dinko
Telerik team
commented on 12 Jan 2022, 11:36 AM

I am happy to hear that you have found the article which describes the HTML export functionality of the RadGridView. However, the HTML export of the RadGridView is pretty old and its API is very limited. That is why I can't propose suitable workarounds for your last requirements.

With the latest release of the UI for WinForms, we aimed to utilize as much as possible the rich API of our Document Processing library for exporting the RadGridView. The library includes a set of cross-platform libraries that let you import and export content between different formats and work with archive files. Could it be a solution for you to export the RadGridView to a different format like xlsx or pdf instead of HTML? This way you can take advantage of the RadSpreadProcessing library.

Pin
Top achievements
Rank 1
Iron
commented on 12 Jan 2022, 12:14 PM

Hi. Thanks for the reply.

Yes, it seems that Excel format is better and has more features.

Dinko
Telerik team
commented on 12 Jan 2022, 02:44 PM

I hope the RadSpreadProcessing library will work for you. If you have any other questions you can open a new forum thread with your questions inside and we will be happy to help
Tags
GridView
Asked by
Pin
Top achievements
Rank 1
Iron
Answers by
Pin
Top achievements
Rank 1
Iron
Share this question
or