aggrid rowSelected is confusing #4734
davetapley
started this conversation in
Ideas / Feature Requests
Replies: 1 comment 1 reply
-
I am sorry for your pain. It is most definitely not coming from NiceGUI since:
Given that it is external library, I think it would not be great, if we "fix" the rowSelected and only that. That would just make the behaviour of NiceGUI + AG Grid even more unpredictable, and worsen things even more. I think we can add a link to https://www.ag-grid.com/javascript-data-grid/grid-events/#reference-selection-rowSelected for https://nicegui.io/documentation/aggrid#respond_to_an_ag_grid_event. It is the best we can do at the moment. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here's a gotcha:
On first click this appears to work correctly, but on subsequent clicks it intermittently lags behind by one click.
After digging around I discovered
rowSelected
is also fired for the row being 'unselected',and you have to check which is which in the handler, e.g.:
I assume
rowSelected
is coming from aggrid itself, but wow is that confusing.It would be a breaking change but I would prefer if
rowSelected
was only for the row actually being selected, and we added e.g.rowUnselected
and possiblyrowSelectionChanged
to preserve existing behavior.Beta Was this translation helpful? Give feedback.
All reactions