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

Upgrade AG Grid from 32.1.0 to 32.2.2 (fixes #3854) #3861

Closed
wants to merge 1 commit into from

Conversation

falkoschindler
Copy link
Contributor

This PR fixes #3854 by upgrading the AG Grid dependency.

@falkoschindler falkoschindler added the dependencies Pull requests that update a dependency file label Oct 11, 2024
@falkoschindler falkoschindler added this to the 2.4 milestone Oct 11, 2024
@falkoschindler
Copy link
Contributor Author

The upgrade breaks one of the pytests:

options = {'columnDefs': [{'field': 'name'}], 'rowData': [{'name': 'Alice'}]}
ui.button('Create', on_click=lambda: ui.aggrid(options).run_grid_method('selectAll'))

Indeed, Alice isn't selected when clicking the button. The method "selectAll" doesn't even work, when the grid already exists.

@falkoschindler
Copy link
Contributor Author

falkoschindler commented Oct 11, 2024

It looks like in 32.2.x we need to define a 'rowSelection' option for selectAll to work.
This feels like a breaking change. 😕

@falkoschindler falkoschindler removed this from the 2.4 milestone Oct 15, 2024
@falkoschindler falkoschindler removed the request for review from rodja October 15, 2024 10:54
@falkoschindler
Copy link
Contributor Author

I'll close this PR because it breaks existing behavior. We will update all dependencies later when releasing NiceGUI 3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AG-Grid's 'rowSelection': {'mode':"multiRow",'headerCheckbox':False} won't work
1 participant