gregnb / gregnb/mui-datatables
Possible to scroll to the selected row?
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
Currently, I am facing 2 problems, hope could get suggestion.
1. for the option, I enabled selectableRows = 'single' and filterType = 'checkbox', and the rowsSelected is from useState ( const [rowsSelected, setrowsSelected] = useState([2])). Now the problem is: Once the rowsSelected changed (for example, somewhere, I setrowsSelected([5])), it does not reflect on tables immediately.
2. according to question NO.1, since the rowsSelected is supported, do we have the possibility to scroll to the selected row? As you see, I changed the rowsSelected by setrowsSelectected([10]), somehow (in some situation) we need to scroll to the new selected row.
| Tech | Version |
|--------------|---------|
| Material-UI | v4.3.3 |
| MUI-datatables | >= v2.10.0 |
| React | 16.8.6 |
| browser | Chrome |
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.