Otvoriť Uzavreté

Question on the proper use of Data Grids #2062


User avatar
0
balessi75 vytvorené
  • 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 odpoveď(e)/dí
  • User Avatar
    0
    liangshiwei vytvorené
    Tím podpory Fullstack Developer

    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/

Made with ❤️ on ABP v8.2.0-preview Updated on marca 25, 2024, 15:11