Blazorise icon indicating copy to clipboard operation
Blazorise copied to clipboard

DataGrid: Make FunctionCompiler extensible

Open WolfgangKluge opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. I have a complex object (EF core with included foreign keys) I want to display (escpecially a part of a 1:n Table). The FunctionCompiler doesn't work well with that (neither Dictionary, dynamic, nor indexer property works). Since the FunctionCompiler is a static class, I cannot extend it the way I need.

Describe the solution you'd like Make the FunctionCompiler a dependency that could be overwritten. That way you can add a compiled function cache, too.

I know I can use the columns without the field - but that has some implications (like sort and filter are not working anymore due to the DataGridColumnInfo inside the DataGridReadDataEventArgs does not contain anything useful to identify the column anymore). That could be workarounded, but it's somewhat harder and not generalizable that easy.

WolfgangKluge avatar May 22 '22 22:05 WolfgangKluge

@David-Moreira, what do you think? It might be worth doing it.

stsrki avatar May 23 '22 08:05 stsrki

I mean, for us it shouldn't be too hard I guess, we just need to provide it as a "module" that you can just override and make sure to provide your own implementation.

David-Moreira avatar May 26 '22 23:05 David-Moreira