Exporting radgridview along with group header template content

1 Answer 59 Views
GridView
Sheetal
Top achievements
Rank 1
Sheetal asked on 03 Jul 2024, 06:57 AM | edited on 18 Jul 2024, 06:32 AM

Hello,

I need to export radgridview data. Here data is grouped and groupheader template is applied.

Current Export feature exports only group member and not the content inside GroupHeaderTemplate. Kindly provide help.

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 18 Jul 2024, 08:02 AM

Hello Sheetal,

The content in the GroupHeaderTemplate needs to be exported manually. You can do this by handling the ElementExportingToDocument event similar to the example shown here. Basically, you can replace the Value of the event arguments with a custom one that matches the content in your custom GroupHeaderTemplate better. 

An alternative approach would be to create a Workbook object from the RadGridView and then manually find the cells with the groups and replace their content using the RadSpreadProcessing library APIs.

Can you try these ideas and let me know if they help?

Regards,
Martin Ivanov
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.

Tags
GridView
Asked by
Sheetal
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or