-
Notifications
You must be signed in to change notification settings - Fork 428
[DataGrid] Add parameter to configure full column resize #3903
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
Conversation
Co-authored-by: vnbaaij <1761079+vnbaaij@users.noreply.github.com>
Co-authored-by: vnbaaij <1761079+vnbaaij@users.noreply.github.com>
Co-authored-by: vnbaaij <1761079+vnbaaij@users.noreply.github.com>
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 60.4%
|
@copilot add a checkbox to the custom comparer example to set/unset this new ResizeColumnOnAllRows parameter and have the setting be reflected in the example code |
Co-authored-by: vnbaaij <1761079+vnbaaij@users.noreply.github.com>
Added a checkbox to the custom comparer example toolbar to control the ResizeColumnOnAllRows parameter. The setting is now reflected in the example code and the checkbox defaults to true (matching the parameter's default). Commit c8e789d. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Adds a new
ResizeColumnOnAllRows
parameter toFluentDataGrid
that controls whether column resize handles extend the full height of the grid or only appear on column headers.Changes
New Parameter:
ResizeColumnOnAllRows
(bool, default:true
)true
: columns can be resized by dragging from any row (v4.12.0+ behavior)false
: columns can only be resized by dragging from column headers (previous behavior)Backward Compatibility: Default value
true
maintains existing behaviorJavaScript Integration: Updated
enableColumnResizing
function to accept the parameter and conditionally set resize handle heightTests: Added unit tests to verify parameter behavior
Documentation: Updated demo with usage example
Usage
Implementation Details
The feature works by modifying the height of the resize handle divs created in the JavaScript
enableColumnResizing
function:ResizeColumnOnAllRows="true"
: handles span the full table heightResizeColumnOnAllRows="false"
: handles only span the header cell heightThis provides users with control over the column resize UX while maintaining full backward compatibility.
Fixes #3902.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
7tjvsblobprodcus341.vsblob.vsassets.io
dotnet build --configuration Release
(dns block)c78vsblobprodcus322.vsblob.vsassets.io
dotnet build --configuration Release
(dns block)d0svsblobprodcus381.vsblob.vsassets.io
dotnet build --configuration Release
(dns block)jd4vsblobprodcus366.vsblob.vsassets.io
dotnet build --configuration Release
(dns block)l49vsblobprodcus358.vsblob.vsassets.io
dotnet build --configuration Release
(dns block)nn8vsblobprodcus340.vsblob.vsassets.io
dotnet build --configuration Release
(dns block)dotnet build src/Core/Microsoft.FluentUI.AspNetCore.Components.csproj --configuration Release
(dns block)uy6vsblobprodcus34.vsblob.vsassets.io
dotnet build --configuration Release
(dns block)vb4vsblobprodcus33.vsblob.vsassets.io
dotnet build --configuration Release
(dns block)If you need me to access, download, or install something from one of these locations, you can either: