Hi, I'm traying to expeort to excel from a grid when the datasource is a list of expando objects and it doesn't work. Can't find any example. Need some help.
The grid shows correctly but as I said can't export to excel.
<SfGrid ID="Grid" Height="100%" EnableVirtualization="false" DataSource="@GridDataSource" @ref="Grid"
AllowPaging="true" AllowResizing="true" AllowExcelExport="true" Toolbar="@(new List<string>() { "ExcelExport" })">
<GridEvents OnToolbarClick="ToolbarClick" TValue="ExpandoObject"></GridEvents>
<GridColumns>
@for (int igr = 0; igr < ColumnsNamesNum; igr++)
{
<GridColumn Field=@ColumnsNames[igr] HeaderText=@ColumnsNames[igr] Width="150" ></GridColumn>
}
</GridColumns>
</SfGrid>