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

feat: add option to disable column filtering/sorting #529

Open
NickCrews opened this issue Jul 29, 2024 · 1 comment
Open

feat: add option to disable column filtering/sorting #529

NickCrews opened this issue Jul 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@NickCrews
Copy link

NickCrews commented Jul 29, 2024

Is your feature request related to a problem? Please describe.
I want to build a jupyter widget for displaying Ibis tables. Ibis wraps around SQL, so the tables can be much larger than memory, so I don't want to materialize the entire table and hand it off to ipydatagrid. This means that the sorting and filtering controls need to happen EXTERNALLY to ipydatagrid. I think it would work well if I composed an ipydatagrid widget inside an ipyibis widget: the outerwidget would have controls for sorting/filtering/pagination, making the ibis query and materializing the pandas dataframe, and then it would hand off this dataframe to ipydatagrid for actual rendering. The problem here is that if ipydatagrid exposes its own sorting/filtering UI, then this is confusing to the user, since they would only be operating on a subset of the possibly-much-larger table. I want the only controls to be in the ipyibis widget.

Describe the solution you'd like
A way of turning off the sorting and filtering in the UI. OR, being able to listen to the events, so that I can handle them on the ipyibis side.

Describe alternatives you've considered

  • Monkeypatching the css or html AFTER ipydatagrid does its thing? IDK how feasible this is.
  • don't render the header row at all from within ipydatagrid, render it externally. This would be hard to get it to align though.
  • forking ipydatagrid. Really don't want to do this.
@tlukkezen
Copy link

tlukkezen commented Sep 18, 2024

Any progress on this? I also have a use-case where the filtering/sorting functionality is adding more noise to the workflow and I would like to be able to switch it off.

@martinRenou martinRenou added the enhancement New feature or request label Sep 18, 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
None yet
Development

No branches or pull requests

3 participants