Starts in:
2 DAYS
6 HRS
13 MIN
34 SEC
Starts in:
2 D
6 H
13 M
34 S
Open Closed

Question on the proper use of Data Grids #2062


User avatar
0
balessi75 created
  • 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)
  • User Avatar
    0
    liangshiwei created
    Support Team 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 v9.1.0-preview. Updated on November 20, 2024, 13:06