Hello,
I have few computed columns in a datagrid. Filter on extended grid columns is giving exception where Due is a extended column. Kindly advise.
EXCEPTION
Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
dotnet: at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()
dotnet: fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit 'WQIFSm5nz28QSYgVVgLK_ol75uLEjJ00Stru_clouhw'.
System.InvalidOperationException: The LINQ expression 'DbSet<TicketGroup>
.Where(t => t.LocID == 1)
.Where(t => t.Due == 2000)' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either AsEnumerable(), AsAsyncEnumerable(), ToList(), or ToListAsync(). See https://go.microsoft.com/fwlink/?linkid=2101038 for more information.
at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.<VisitMethodCall>g__CheckTranslated|8_0(ShapedQueryExpression translated, <>c__DisplayClass8_0& )
You need custom export method. You can add the data source export controller to the application ignore list and extend the relevant method with custom code that will populate the computed property: