Hi,
is there any way, how to "debounce" when you scroll down for example by 1px to NOT CALL onread when data is already in current dataset?
Why? Because you are scrolling to item, which is already loaded(just presented invisible down in html markup).
expected:
- if you scroll to "end of the current page dataset" then it should read next one - call OnRead.
Simple calc - example:
PageSize = 100 - just for testing
ItemHeight= 400px - HUGE ONE, to get the idea
GridHeight = 600px
items on "page/screen" ~ 2, items loaded: 100
So you at least have inmemory 45 "pages" of data. So calling OnRead is not necessary.
Here is example to observere how many times OnRead is called So if it will be sql/external/network data paging, it hits DB +api every single pixel of move.
https://blazorrepl.telerik.com/QTadFJPJ215VflwP28
if someone thinks about caching it to the local variable, dont do that :) = if even so, is there a way how to get it from <TelerikGrid @Ref=ME .../> @Me.Data ? If not, so caching this way is bad idea.
Thanks for the tips.