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

Auto-scroll to the last row or to a selected row #408

Open
j-baum opened this issue Mar 12, 2023 · 1 comment
Open

Auto-scroll to the last row or to a selected row #408

j-baum opened this issue Mar 12, 2023 · 1 comment

Comments

@j-baum
Copy link

j-baum commented Mar 12, 2023

Is your feature request related to a problem? Please describe.
Most of the data I work with is time-based, where the newest data entries are in the last row. If I use ipydatagrid to display this data, I have to scroll a long way to get all the way to the bottom, where the newest data is. Even if I select the bottom row before I show the grid, datagrid still renders with the very top row in view.

Describe the solution you'd like
I would like something like grid.scroll_to(row = 100) to make row #100 visible in the grid rendering. Or grid.autoscroll = True to always startup at the last data row.

I would be happy to help with the implementation, but I assume some js/css expertise is required, which I don't have. If it can be done from the python side, a pointer in where to start looking at the code would be appreciated.

@ankostis
Copy link

ankostis commented Mar 18, 2023

Really interested as well, and for any workarounds to emulate a potential set_visible_range() method.

Relates to #305.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants