Closed agonzalezm closed 6 years ago
Hello,
now for server side pagig you must implement ILazyDataSetLoader<>
interface for service which fetch data. And in your page use LazyLoadedTableDataAdapter<>
. I will think about better solution, but for now this is possible solution.
You can find these in ServerSide.App https://github.com/Mewriick/Blazor.FlexGrid/blob/master/demo/Blazor.FlexGrid.Demo.Serverside.App/Pages/LazyLoadedGrid.cshtml https://github.com/Mewriick/Blazor.FlexGrid/blob/master/demo/Blazor.FlexGrid.Demo.Serverside.App/Services/WeatherForecastService.cs
ok, i will give this a try! thanks awesome control
also instead of specifying number of rows to show per page, is there any way to configure the grid to expand to bottom of the page and occupy all possible space and then depending of the screen resolution it will show more or less rows and will do the paging according to that?
For now this is not possible and pagination only works with specified rows per page, but I will add some infinite scrolling functionality in future versions
Still lot of works front of me :)
sure, thanks, keep the good work! I would also like to see:
Hope some of this is in your "roadmap" :)
Yes everything you sain is in my roadmap. My next step probably will be implementing filtering/serach feature.
The column sorting is even implemented, you only must configure that particular column can be sorted, by calling IsSortable
on configuring Property in grid entity configuration.
For exmaple
builder.Property(e => e.TemperatureF).IsSortable();
Could you add support for server side paging for large datasets?