-
Notifications
You must be signed in to change notification settings - Fork 461
[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
IsFixedparameter to theFluentDataGridcomponent 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
IsFixedboolean parameter with default valuefalseto 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:RefreshItemscalls to only forced or initial requestsUsage Example
Implementation Details
OnParametersSetAsync()to respect theIsFixedparameter in change detection logicRefreshDataCoreAsync()to be more conservative about automatic refreshes whenIsFixed=trueBackward Compatibility
falseensures 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.