Skip to content

Conversation

apcqa
Copy link

@apcqa apcqa commented Sep 25, 2025

Changed type of enableVirtualization property on DataGrid to accept either a boolean, undefiend or a VirtualizationOptions object
which allows the user to enable or disable virtualization for rows and or columns and also specify the overscan threshold for rows (default 4).

Change maintains compatibility with existing boolean type and defaults.

Fixes #3619

@CLAassistant
Copy link

CLAassistant commented Sep 25, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@amanmahajan7 amanmahajan7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add extensive tests for the new functionality

*/
/** @default true */
enableVirtualization?: Maybe<boolean>;
enableVirtualization?: Maybe<boolean | VirtualizationOptions>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
enableVirtualization?: Maybe<boolean | VirtualizationOptions>;
enableVirtualization?: Maybe<'row' | 'column' | boolean>;

I think we can keep it simple for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to specify enableVirtualization for rows or columns
3 participants