Comcast / Comcast/react-data-grid

Ability to pass scroll parent

Open
#3,061 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.7k
Forks
2.2k
Avg merge
1d 2h
Merged PRs (30d)
33

Description

## Use case
We are using react-data-grid list as a non-scrollable container which extends in height when there are new items loaded in a whole scrollable page environment. Since react-data-grid only tracks it's own container scroll positions/properties we lose the benefits of virtualization (and probably more stuff). That's why we need a passable ref prop which would be used for scroll tracking and enabling virtualization.

## Proposed solution
A passable parent scroll container ref prop to which scroll event listeners would be attached thus tracking parent scroll properties. I have POC fork available to demo how could this work https://github.com/JasonasIgn/react-data-grid

![x0mcptM3hR](https://user-images.githubusercontent.com/5280337/198237011-89f49c4f-2bd8-49b5-88f0-ec3813fd226a.gif)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.