Replies: 1 comment
-
|
Hi, Thanks for the compliments and for the proposal! I think this is something we can work on for a post-V5 release timeframe. There are a couple of thing we should think about more before we can start building this though:
Probably not a complete list here yet, but these are just some questions and remarks that popped up for me. Let's use this space to brainstorm on this more! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team!
First of all, thank you for the amazing work on the Fluent UI Blazor library. FluentDataGrid is a great component, and I would like to propose a feature enhancement: built-in column state management.
Currently, users can resize columns using sizers, but there is no out-of-the-box way to easily save and restore this layout. It would be fantastic to have a mechanism to both get (export) and set (import) the current state of the columns.
Here are the key use cases I have in mind:
Column Width & Resizing Persistence
- The Goal: When a user resizes columns to their liking, the application should be able to capture these widths and save them (e.g., to local storage or a database). When the user returns to the page, the grid should restore those exact dimensions.
- Proposed API idea: A way to bind or react to column width changes, and a property/method to apply a predefined set of widths upon rendering.
Column Reordering
- The Goal: Allow users to change the visual sequence of columns (that part is already done) with the ability to programmatically retrieve the new order and apply it back on the next session.
Column Visibility
- The Goal: It would be incredibly useful to have a built-in or easily configurable setting/menu where users can choose which columns to display or hide from the available pool of columns.
Why this would be awesome
Managing grid states manually (by wrapping columns in conditional logic or trying to manipulate the DOM/CSS variables for widths) introduces a lot of boilerplate code. Having native support for exporting/importing column configurations (Width, Order, Visibility) would make FluentDataGrid incredibly flexible for dashboard-heavy applications.
I would love to hear your thoughts on this or see if anyone has found an elegant workaround for this in the v5 version!
Thank you for your time and consideration!
Beta Was this translation helpful? Give feedback.
All reactions