Exception thrown in Grid when Exporting to Excel, using grouping and ExpandoObject

Hi,

I have a bug to report.

When using the Grid, Grouping and ExpandoObject it throws and error when exporting to Excel.

System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.List`1[System.Dynamic.ExpandoObject]' to type 'System.Collections.Generic.IEnumerable`1[Syncfusion.Blazor.Data.Group`1[System.Dynamic.ExpandoObject]]'.

I hope you can solve this because I need to use those features.


1 Reply

MS Monisha Saravanan Syncfusion Team September 19, 2022 02:56 PM UTC

Hi Anders,


Greetings from Syncfusion support.


We have prepared an sample as per your shared information and we could not able to reproduce the reported issue at our end when exporting expand object with grouped Grid. Kindly check the attached sample for your reference.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SampleEO-1577448782-874041252.zip


If the reported issue still reproduced then kindly share the below details to validate the issue further at our end.


  1. Share the entire Grid code snippet.
  2. Share us the video demonstration of the issue.
  3. If possible share us an simple issue reproduceable sample or try to reproduce the reported issue on the above provided sample.

The above-requested details will be very helpful for us to validate the reported query at our end and provide the solution as early as possible.


Regards,

Monisha


Loader.
Up arrow icon