React-data-grid: `scrollToRowIndex` prop on ReactDataGrid not working.

Created on 16 Mar 2019  ·  4Comments  ·  Source: adazzle/react-data-grid

The scrollToRowIndex prop found in the ReactDataGrid component doesn't seem to do anything.

That being said, for my purposes it would help immensely if I could set the initial scroll state of the grid (both x & y directions). If anyone from adazzle reads this, would it be possible to merge some changes regarding the setting the initial scroll state of the grid?

I'd like to work on those changes in the repo but want to make sure they would not be in vain. Thanks!


Which version of React JS are you using?

✅ Officially supported ✅

  • [ ] v15.4.x

⚠️ Not officially supported, expect warnings ⚠️

  • [ ] v15.5.x
  • [ ] v15.6.x

☣️ Not officially supported, expect warnings and errors ☣️

  • [ ] v16.x.x

Which browser are you using?

✅ Officially supported ✅

  • [ ] IE 9 / IE 10 / IE 11
  • [ ] Edge
  • [ ] Chrome

⚠️ Not officially supported, but "should work" ⚠️

  • [ ] Firefox
  • [ ] Safari

I'm submitting a ...

  • [ ] 🐛 Bug Report
  • [ ] 💡 Feature Request

👋 Need general support? Not sure about how to use React itself, or how to get started with the Grid?
Please do not submit support request here. Instead see

https://github.com/adazzle/react-data-grid/blob/master/CONTRIBUTING.md


Issue Details

Please include:
- What the current behavior is
- What the desired behvaior is
- (If Bug) Steps to reproduce the issue
- (If Feature) The motivation / use case for the feature

We especially love screenshots / videos of problems, and remember
The Best Issue Is A Pull Request™

Most helpful comment

Confirming that this prop seems to do nothing. I was able to work around this in componentDidMount using this technique: https://github.com/adazzle/react-data-grid/issues/661#issuecomment-312449548, but I would surely like to use scrollToRowIndex instead of dealing with the ref and dom for this.

All 4 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.

Bump.

Also, I'll be able to look into this properly myself sometime next week.

Confirming that this prop seems to do nothing. I was able to work around this in componentDidMount using this technique: https://github.com/adazzle/react-data-grid/issues/661#issuecomment-312449548, but I would surely like to use scrollToRowIndex instead of dealing with the ref and dom for this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alvaro1728 picture alvaro1728  ·  4Comments

soma83 picture soma83  ·  4Comments

oliverwatkins picture oliverwatkins  ·  4Comments

GenoD picture GenoD  ·  3Comments

localhosted picture localhosted  ·  4Comments