Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[data grid] Allow for expressing the grid height in number of visible rows #13143

Open
Janpot opened this issue May 15, 2024 · 1 comment
Open
Labels
component: data grid This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature

Comments

@Janpot
Copy link
Member

Janpot commented May 15, 2024

Summary

Looking for a way to set the height of the grid based on the desired amount of rows to be visible at once. A heightInRows (better name required) prop that takes an amount of rows and sizes the grid to accommodate for this exact amount. To avoid a small space underneath the last row.

This would play well with the autoPageSize property to have a grid that sizes and paginates on a predefined amount of rows. autoHeight together with pagination is not enough as it can't account for height during loading, or for fewer items on the last page.

Perhaps it would even make sense to overload the autoHeight property to take a number?

Examples

I guess the best analogy would be the rows property of the native textarea

Motivation

No response

Search keywords: rows height

@Janpot Janpot added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 15, 2024
@michelengelen michelengelen changed the title [DataGrid] Allow for expressing the grid height in number of visible rows [data grid] Allow for expressing the grid height in number of visible rows May 16, 2024
@michelengelen michelengelen added component: data grid This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels May 16, 2024
@michelengelen
Copy link
Member

Added it to the board! 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature
Projects
None yet
Development

No branches or pull requests

2 participants