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
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?