vikramlearning / blazorbootstrap

An Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS frameworks.
https://docs.blazorbootstrap.com/
Apache License 2.0
565 stars 15 forks source link

GRID- Server side filtering, paging and sorting #754

Closed mrcorale closed 1 week ago

mrcorale commented 2 weeks ago

Hi, there is an issue with the lazy loading implementation in the grid. I have applied the necessary parameters, but the grid appears empty. However, the backend data is applied correctly. For any further clarification, I can email you the code to verify the logic! grid back-end fron-end

gvreddy04 commented 1 week ago

@mrcorale Thanks for choosing BlazorBootstrap! If you're encountering an issue, sharing a sample GitHub repo with minimal reproduction steps would be very helpful.

mrcorale commented 1 week ago

Thank you for responding and considering the issue I submitted. Attached you will find the source code.

https://github.com/mrcorale/Blazor-Boostrap

gvreddy04 commented 1 week ago

@mrcorale Since you are using custom pagination, it is recommended to avoid using request.PageNumber and request.PageSize.

Before fix:

var result = await dataWork.Employees.GetPaginatedAsync(request.PageNumber, request.PageSize, request.CancellationToken);

After fix:

var result = await dataWork.Employees.GetPaginatedAsync(currentPageNumber, pgSize, request.CancellationToken);

Screenshot: image

mrcorale commented 1 week ago

I am very grateful, thank you very much! I understand now!