Declined
Last Updated: 20 Nov 2023 16:39 by ADMIN
Kacper
Created on: 26 Oct 2023 06:12
Category: UI for Blazor
Type: Bug Report
2
ddl virtual scrolling - duplicated api requests in onread

Hi,

This kind of behavior causes duplicate OnRead calls for the same range. If the OnRead method invokes a request to the API it will result in duplicate requests with the same range.

 

3 comments
ADMIN
Hristian Stefanov
Posted on: 20 Nov 2023 16:39

Hi Kacper,

Thank you for sharing your opinion. We highly value it.

I confirm that even a slight scroll triggers a change in scope, altering the context even if the visual difference may not be substantial. It's important to note that the component can't predict where your scroll will conclude; it simply recognizes your intent to load the items above. Consequently, the DropDownList must invoke the OnRead function to accurately fetch the data.

Should any feasible methods arise for improving this behavior in the future, there's always the option to reconsider the status of this item.

Regards,
Hristian Stefanov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Kacper
Posted on: 14 Nov 2023 12:26

Hi Hristian Stefanov, 

Thanks for your reply.

In my opinion there should be no multiple calls for OnRead method for the same scope, no matter what type of behavior occurs on the UI. The scrolling which i present on the gif is so small that it doesn't change the scope.

ADMIN
Hristian Stefanov
Posted on: 01 Nov 2023 16:14

Hi Kacper,

I have conducted a thorough review of the information you shared and have taken the time to test the OnRead functionality on my own machine. As a result, I am ready to provide insights and relay my observations on the situation.

In this particular scenario, the behavior you described is as expected. This behavior occurs because, when you scroll down to the last element and then make a swift upward scroll, the page above attempts to load, and subsequently, making a rapid downward scroll initiates the immediate loading of the lower page. These actions lead to the event being called twice.

If we can assist with more information, I would be glad.

Regards,
Hristian Stefanov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!