Comcast / Comcast/react-data-grid

Allow to specify enableVirtualization for rows or columns

Open
#3,619 4 comments 0 reactions 0 assignees View on GitHub
Will Accept PR
Dominant language
TypeScript
Stars
7.7k
Forks
2.2k
Avg merge
1d 2h
Merged PRs (30d)
33

Description

## Use Case

It would be highly beneficial to allow more control over the `enableVirtualization` option. Currently, enabling virtualization affects both rows and columns automatically. However, it would be great to have the ability to specify the scope of virtualization, such as rows, columns, or all, instead of just a simple true/false toggle.

This feature could also address the issue with frozen columns on the right (#2873), enabling the freezing of columns through CSS alone. Now, applying a CSS-based solution conflicts with virtualization, as enabling it prevents the last column from rendering correctly, thereby breaking the freezing behaviour.

## Proposed Solution

The proposal is straightforward: allow the `enableVirtualization` option to accept something like `columns | rows | all` as value, and adjust the behaviour accordingly. This would provide more flexibility in configuring virtualization while addressing current limitations.

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.