Open Closed

How to use Blazorise datagrid filter with ABP? #2259


User avatar
0
zither created

Suppose that there is a Blazor page based on AbpCrudPageBase in which Blazorise Datagrid is included. I would like to know how to implement Blazorise Datagrid filter. I tried as follow but not working.

<DataGrid TItem="TownshipDto" Data="Entities" ReadData="OnDataGridReadAsync" Filterable="true" FilterMethod="DataGridFilterMethod.Contains" Responsive="true">

It tries to call Web API but there is no field name parameters in API call.

  • ABP Framework version: v4.4.0
  • UI type: Blazor
  • DB provider: EF Core

Thanks


2 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    You can see an already built example form identity module: https://github.com/abpframework/abp/blob/afc99acdb94aff74ed4745a6f3910f99c3f2119b/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor#L22-L30

    And columns were configured like this: https://github.com/abpframework/abp/blob/afc99acdb94aff74ed4745a6f3910f99c3f2119b/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/RoleManagement.razor.cs#L78-L92

  • User Avatar
    0
    zither created

    Thanks

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