Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Async Loading of Items #7

Closed
roomtek opened this issue May 19, 2019 · 2 comments · Fixed by #16
Closed

Support Async Loading of Items #7

roomtek opened this issue May 19, 2019 · 2 comments · Fixed by #16
Assignees
Labels
enhancement New feature or request

Comments

@roomtek
Copy link

roomtek commented May 19, 2019

I am using setDataProvider().

but in my AbstractBackEndDataProvider, sizeInBackEnd() is never called, and so all items are loaded from the backend instead of "as needed" as defined in the javadoc

@gatanaso gatanaso added the enhancement New feature or request label May 20, 2019
@heruan
Copy link

heruan commented May 28, 2019

I see this more a bug than an enhancement: it hangs the UI if the data source has many (e.g. thousands) of items, since it fetches all of them at once.

Calls to data provider should be filtered and limited, as in Vaadin's ComboBox.

@gatanaso
Copy link
Owner

Thank you for the feedback.

The reason why I have seen this as an enhancement is that providing this feature requires a bit more work in order to properly handle "lazy loading" as it's done in the Vaadin ComboBox. I agree that loading thousands of items will definitely block the UI and that does not provide a good user experience.

When I have more time I will try to investigate this further and see if it's possible to add this functionality.

@gatanaso gatanaso self-assigned this Sep 24, 2019
This was referenced Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants