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

Any way that we can disable lazyload (Keep all rows in DOM all the time)?

Open w3nisar opened this issue 9 years ago • 5 comments

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.



w3nisar avatar Aug 31 '17 12:08 w3nisar

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 avatar Aug 31 '17 20:08 lord-xeon

@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.

bhunjadi avatar Oct 21 '17 10:10 bhunjadi

I think you can override overScan to change the virtual scrolling window.

amanmahajan7 avatar Mar 25 '18 01:03 amanmahajan7

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 12 '18 12:07 stale[bot]

I think you can override overScan to change the virtual scrolling window.

How would you suggest doing this?

Joel-Lowther avatar Jan 09 '20 21:01 Joel-Lowther