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
{{ message }}
Repository navigation
Grid with CallbackDataProvider selection didn't work on Dialog open #2354
I found strange behavior when using CallbackDataProvider. If i use entities with overriden equals(0 and hashCode() it can select item, but when i use identifierGetter - it doesn't.
Please look at that project: https://github.com/lanmaster/dialogwithgriddemo
Activity
lanmaster commentedon Nov 7, 2021
Cannot reproduce on fresh project, will search in my code...
lanmaster commentedon Nov 7, 2021
I found strange behavior when using CallbackDataProvider. If i use entities with overriden equals(0 and hashCode() it can select item, but when i use identifierGetter - it doesn't.
Please look at that project:
https://github.com/lanmaster/dialogwithgriddemo
pleku commentedon Nov 17, 2021
The problem is in the selection model code in grid.
The single selection model is not using the identifier provider twice:
https://github.com/vaadin/flow-components/blob/master/vaadin-grid-flow-parent/vaadin-grid-flow/src/main/java/com/vaadin/flow/component/grid/AbstractGridSingleSelectionModel.java#L63-L73
For multiselect mode, it is working correctly
https://github.com/vaadin/flow-components/blob/master/vaadin-grid-flow-parent/vaadin-grid-flow/src/main/java/com/vaadin/flow/component/grid/AbstractGridMultiSelectionModel.java#L210
As the issue is in the component integration code, transferring the issue to vaadin/flow-components repository
fix: fix selecting an item in a single select grid
fix: fix selecting an item in a single select grid
fix: fix selecting an item in a single select grid
fix: fix selecting an item in a single select grid (#2357)
fix: fix selecting an item in a single select grid (#2357)
fix: fix selecting an item in a single select grid (#2357) (#2733)
vaadin-bot commentedon Mar 1, 2022
This ticket/PR has been released with platform 22.0.7.
vaadin-bot commentedon Mar 9, 2022
This ticket/PR has been released with platform 23.0.0.