Any way that we can disable lazyload (Keep all rows in DOM all the time)?
Which version of React JS are you using?
✅ Officially supported ✅
- [✅] v15.4.x
⚠️ Not officially supported, expect warnings ⚠️
- [ ] v15.5.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
Records are loaded and removed from DOM as we scroll
- What the desired behvaior is]
I would like all the records to be in DOM all the time.
This would very quickly slow down the entire browser as many hundreds or even thousands of DOM elements and event listeners are added to the DOM. What purpose do you need to keep all of the items for?
@lord-xeon I'm using pagination and only showing up to 20 rows per page. Also, I have defined custom RowRenderer which shows a form below the row when the row is clicked. So when I scroll a bit the component is removed from DOM.
I know I can keep state (form values and the flag if row is expanded) somewhere else, but it would be handy in this case to have an option to keep all elements in DOM.
I think you can override overScan to change the virtual scrolling window.
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.
I think you can override
overScanto change the virtual scrolling window.
How would you suggest doing this?