SamProf / MatBlazor

Material Design components for Blazor and Razor Components
http://www.matblazor.com
MIT License
2.84k stars 386 forks source link

MatTable Paging issue and enhancement (v. 2.3) #482

Open GioviQ opened 4 years ago

GioviQ commented 4 years ago

When ShowPaging="false", the paging is enabled in any case, so you can see only the first 5 items.

You should be able to disable paging, so you can see all items, without the need to set PageSize.

It would be better that in any case (paging enable or not), you could set the visible numer of rows and scroll the others.

gingters commented 4 years ago

I agree, the behavior is pretty counter-intuitive.

My issue was that when I used the embedded paging with a DB data source (in Blazor Server), I did not get an event when the page size of the embedded paginator was changed, so it did not reload the data.

When I switched to the external paginator it worked, but I had to disable the table-internal paging and STILL hook up the pagesize attribute. When paging is disabled on the table, it should show as many rows as the hooked up data contains.

GioviQ commented 4 years ago

With the new virtual table of Blazor presented here https://youtu.be/KRNd8JDRqRc we can replace paginator with infinite scroll.