Skip to content

FluentDataGrid scroll up/scroll down does not show the correct number of records #2459

Discussion options

You must be logged in to vote

OK, I know what happened.

I have to use the req.StartIndex and req.Count and send them as the query parameter of the remote data (web api) to IQueryable.skip() and IQueryable.take() the data.

But in the beginning, the req.Count will be NULL.

        provider = async req =>
        {
            var skip = req.StartIndex;
            var limit = req.Count ?? 20;

            var urlString = "https://localhost:7069/api/ProductItems?skip=" + skip + "&limit=" + limit;

            var response = await Http.GetAsync(urlString);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vnbaaij
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant