You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe somebody has already done this. I asked a similar question a few years back and somebody mentioned a potential middleware solution, but I don't think it's what I'm looking for.
My idea is simple.
Add two attributes to the Virtualizer:
Mode (None (Default) | Throttle | Debounce)
ModeOption
If in None mode, ModeOption is ignored.
If in Throttle mode, ItemsProviderRequests are throttled to the rate as set in ModeOption
If in Debounce mode, ItemsProviderRequests are suppressed into the control is quiet for some period as set in ModeOption.
I don't really care how many attributes is the correct answer here - what I know is when my users are scrolling around, the number of hits to the database is out of control. I can't just ignore the C# event...and I can't pass back cached data. I need to let them scroll, but when they stop moving, THEN I can allow the ItemsProvider to make its call.
If this is possible (and as easy) now, please advise.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Maybe somebody has already done this. I asked a similar question a few years back and somebody mentioned a potential middleware solution, but I don't think it's what I'm looking for.
My idea is simple.
Add two attributes to the Virtualizer:
If in None mode, ModeOption is ignored.
If in Throttle mode, ItemsProviderRequests are throttled to the rate as set in ModeOption
If in Debounce mode, ItemsProviderRequests are suppressed into the control is quiet for some period as set in ModeOption.
I don't really care how many attributes is the correct answer here - what I know is when my users are scrolling around, the number of hits to the database is out of control. I can't just ignore the C# event...and I can't pass back cached data. I need to let them scroll, but when they stop moving, THEN I can allow the ItemsProvider to make its call.
If this is possible (and as easy) now, please advise.
Beta Was this translation helpful? Give feedback.
All reactions