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

Can't scrollToIndex on render #427

Open
FrancisVila opened this issue Sep 16, 2024 · 1 comment
Open

Can't scrollToIndex on render #427

FrancisVila opened this issue Sep 16, 2024 · 1 comment

Comments

@FrancisVila
Copy link

FrancisVila commented Sep 16, 2024

Version for @inovua/reactdatagrid-community : default version loaded in CodeSandBox

Code: in CodeSandBox

What you did: I'm trying to use scroll along with a given row after a re-render.

The context: I have 2 tables side by side and I want to pass rows from one side to the other. The row selected on the left should disappear and re-appear on the right side just after the right side's selected row.

What happened:

Using UseEffect or directly running scrollToIndex, I can't get the table to automatically scroll to a given row after the render.

Reproduction repository: CodeSandBox

Problem description:

Found no way of scrolling programmatically on render or re-render of page.

Suggested solution:

  • If a way of doing this exists: add it to the doc.
  • If none exists: add a defaultScrollIndex parameter (also defaultScrollId) so that the React programmer can define what row should scroll into view.
@FrancisVila
Copy link
Author

Hi, any news on this? Is it possible with the current version?

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

1 participant