ipydatagrid
ipydatagrid copied to clipboard
Auto-Scroll when selection is changed programmatically
Is your feature request related to a problem? Please describe. I'm using ipydatagrid to visualize conversations. Every row of the grid is a sentence. I have set the selection mode to 'row', so when I use the cursor keys to change the selected row, the grid correctly scrolls up or down to ensure my selected-row is visible. This doesn't happen when I programmatically set the selection, using 'my_datagrid.select(index_within_view, 0)', forcing the user to have to manually scroll and look for the selected row.
Describe the solution you'd like I would like the grid to "follow" my selection in the same way. To remove ambiguity, I'd suggest this feature is only active when the 'row' selection mode is set, and to make things even clearer, only track the top row in cases of multiple selections.
Describe alternatives you've considered I have not been able to work around this issue. No alternatives.
Additional context Screenshots may be provided later upon request for further clarifications.
btw, when you navigate with the cursor keys around how do you manage to edit a cell with the keys. i.e. what do you have to press in order to make the equivalent to double click with the mouse in a cell? thanks.
I'd also be interested in having this happen upon selecting a row. Any progress on this?