Starts in:
1 DAY
12 HRS
59 MIN
25 SEC
Starts in:
1 D
12 H
59 M
25 S
Open Closed

ShowPageSizes = true on DataGrid but not working and Increasing Default Page Size from 10 to 25 #2953


User avatar
0
adrianl created

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v5.2.0
  • UI type: Blazor
  • DB provider: EF Core
  • Steps to reproduce the issue:"
    • On the DataGrid, Add property ShowPageSizes = true

Hi,

We have a requirement to have an option to set the page size according to the selected page size from the item per page on the DataGrid. We set the property "ShowPageSizes = True" on the DataGrid together with inheriting AbpCrudPageBase. But we're having a problem as it won't be able to bind on "PageSize" Property as this is read only property. Is there a way that we could bind the "PageSize" from the selected page size so we could increase the number of data displayed per page? For now it is just currently displaying 10 per page and even if we change the value in the combo box nothing happens. We want to increase the default page size from 10 to 25 also.

We need your help to know how we could implement that kind of approach?


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    This is a problem with Blazorize: https://github.com/Megabit/Blazorise/issues/3610

    When changing the page size, it will trigger ReadData event twice

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06