- ABP Framework version: v4.4.3
- UI type: Blazor Server
- DB provider: EF Core
We see examples of rendering a grid using the approach of <DataGrid ....> <DataGridColumns...> <DataGridColumn...> where each column's definition is defined in the .razor file markup. We also see examples of using <AbpExtensibleDataGrid...> where all of the grids column specifications are defined in the razor.cs code behind file in C#.
Which approach is generally recommended and under what senario would you use one approach or the other?
Thanks as always!
1 Answer(s)
-
0
Hi,
ABP extracted AbpExtensibleDataGrid to make DataGrid easy. https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.BlazoriseUI/Components/AbpExtensibleDataGrid.razor
You can use it in most cases, it will make your development easier, but when you want to fully control each column, you need to use DataGrid, you can see the document : https://blazorise.com/docs/extensions/datagrid/