Skip to content

Conversation

jwasilgeo
Copy link

Hello maintainers 👋. I'd like to introduce the ability to toggle on/off frozen group columns in the TreeDataGrid. Please let me know if there is anything else I can do in this PR to make it ready for review and your consideration to merge in to this library. Thanks!

This PR:

  • Modifies the TreeDataGrid to rely on column.frozen values if present, rather than being hard-coded to true always.
  • Updates the RowGrouping live demo to demonstrate this functionality with a checkbox to toggle it on/off for the grouping columns.
Screen.Recording.2024-01-04.at.9.56.41.AM.mov

@jwasilgeo jwasilgeo force-pushed the feat/use-column-frozen-prop-for-tree-data-grid branch from 965337f to a213ad4 Compare January 6, 2024 16:52
@jwasilgeo jwasilgeo force-pushed the feat/use-column-frozen-prop-for-tree-data-grid branch from c2e0f19 to 4fd6e03 Compare February 1, 2024 19:05
@jwasilgeo jwasilgeo force-pushed the feat/use-column-frozen-prop-for-tree-data-grid branch from 4fd6e03 to 87f698d Compare February 12, 2024 02:42
@@ -96,7 +96,7 @@ function TreeDataGrid<R, SR, K extends Key>(
groupBy.push(column.key);
columns[index] = {
...column,
frozen: true,
frozen: column.frozen ?? true,
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if the data is grouped on two columns and only the first column has frozen: false?

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.

2 participants