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

Enhanced Selection doesn't work with GridLazyDataView #109

Open
deyaeddin opened this issue Jan 8, 2024 · 1 comment
Open

Enhanced Selection doesn't work with GridLazyDataView #109

deyaeddin opened this issue Jan 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@deyaeddin
Copy link

when using Enhanced Selection with Lazy Data Provider, this exception is thrown.

java.lang.IllegalStateException: GridListDataView only supports 'ListDataProvider' or it's subclasses, but was given a 'AbstractBackEndDataProvider'. Use either 'getLazyDataView()', 'getListDataView()' or 'getGenericDataView()' according to the used data type. at com.vaadin.flow.data.provider.AbstractDataView.verifyDataProviderType(AbstractDataView.java:114) at com.vaadin.flow.data.provider.AbstractDataView.<init>(AbstractDataView.java:74)

deyaeddin added a commit to deyaeddin/GridHelpers that referenced this issue Jan 8, 2024
@paodb paodb added this to Inbox (needs triage) in Flowing Code Addons (legacy) via automation Jan 9, 2024
@javier-godoy
Copy link
Member

As mentioned in #110 (comment), the current implementation iof this feature is intentionally restricted to in-memory data providers, because there is no efficient way to compute indexOf from a backend data provider. https://github.com/vaadin-component-factory/selection-grid-flow follows a different approach by capturing the indexes in the client-side, so that the data provider can resolve them.

@javier-godoy javier-godoy added the enhancement New feature or request label Jan 15, 2024
@javier-godoy javier-godoy moved this from Inbox (needs triage) to To Do in Flowing Code Addons (legacy) Jan 15, 2024
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
Status: To Do
Development

No branches or pull requests

2 participants