react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

Add (or document) a way to programmatically select a cell

Open wibblymat opened this issue 8 years ago • 5 comments

  • Have you already searched for similar issues? Please help us out and double-check first!

  • Also, please don't be that person who deletes this template. It's here for a reason.

  • Thanks!


Which version of React JS are you using?

✅ Officially supported ✅

  • [x] 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
  • [x] Chrome

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

  • [ ] Firefox
  • [ ] Safari

I'm submitting a ...

  • [ ] 🐛 Bug Report
  • [x] 💡 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

We have a feature that lets a user add a new row to a table. We would like for the user to immediately start editing that row without having to click it.

We can determine which row we just added, and we know the index of the first editable column. We would like to use this information to set which cell of the table has focus.

wibblymat avatar Mar 27 '18 14:03 wibblymat

is there currently a way to do this that isn't documented yet?

spchuang avatar Jun 11 '18 17:06 spchuang

@spchuang The work around I used was to get a reference to the data grid and call gridRef.setState({ selected: { rowIdx: row, idx: column } });. Which is pretty awful, all things considered.

wibblymat avatar Jun 12 '18 09:06 wibblymat

I see. Yeah that is very hacky but I guess does the job

spchuang avatar Jun 12 '18 21:06 spchuang

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.

stale[bot] avatar Jul 14 '18 16:07 stale[bot]

Is there a way to select multiple cells like part of table

Tarun-1994-Kumar avatar Jan 22 '20 07:01 Tarun-1994-Kumar