-
Notifications
You must be signed in to change notification settings - Fork 454
[DataGrid] Add IsFixed parameter #3927
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
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 60.5%
|
Hello, is there any ETA for when this PR will be merged into a public version of the NuGet package (even a prerelease)? |
There are pre-release packages available already. See https://github.com/microsoft/fluentui-blazor/blob/dev/docs/using-latest-daily.md v4.12.1 final will probably be available next week |
This PR adds an
IsFixed
parameter to theFluentDataGrid
component that allows developers to optimize performance when working with static datasets that are not expected to change during the grid's lifetime. Fixes #3911. Fixes #3920.Changes
New Parameter
IsFixed
boolean parameter with default valuefalse
to maintain backward compatibilityIsFixed=true
, the grid optimizes refresh behavior for static datasetsIsFixed=false
(default), maintains existing behavior from v4.11.9Performance Optimizations
When
IsFixed=true
:RefreshItems
calls to only forced or initial requestsUsage Example
Implementation Details
OnParametersSetAsync()
to respect theIsFixed
parameter in change detection logicRefreshDataCoreAsync()
to be more conservative about automatic refreshes whenIsFixed=true
Backward Compatibility
false
ensures existing code continues to work unchangedThis implementation replaces the automatic refresh logic that was added in v4.12.0 with more controlled behavior when developers know their dataset is static, providing significant performance benefits for such scenarios.