Hi Nils,
Thanks for providing the runnable sample.
We have validated your query and we are able to reproduce the reported problem from our end. We have considered this as a bug and logged a defect report “Exception throws on excel exporting in grouped grid when Group caption template is defined in grid” for the same. We will update the issue fix timeline on Feb 8, 2021.
Till then we suggest you to define the ExcelGroupCaptionTemplateInfo event in GridEvents as a work around to resolve the exception.
Please find the code snippet and the sample for your reference.
HQGrid.razor
|
<GridEvents TValue="ProjectWithCustomFieldsDto"
ExcelGroupCaptionTemplateInfo="GroupCaptionTemplate">
</GridEvents>
@code{
public void GroupCaptionTemplate(ExcelCaptionTemplateArgs args) {
args.Cell.Value = "caption template data";
}
} |
Regards,
Jeevakanth SP.