fix: RowSize ignored if MultiLine="true" in FluentDataGrid
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 62/100
Research direction
Start by reading the FluentDataGrid implementation and its styles for the RowSize and MultiLine parameters, then look for existing data grid tests covering row sizing and multiline content. Reproduce the report with RowSize="DataGridRowSize.Large" and MultiLine="true"; done means rows retain the large size while multiline content is displayed without rows merging.
Written by the indexing model from the issue text.
Description
🐛 Bug Report
Greetings. I came across the following problem:
If you specify the MultiLine="true" parameter, the RowSize parameter is ignored.
💻 Repro or Code Sample
@page "/"
<PageTitle>Page</PageTitle>
<h3>Header</h3>
<div id="datagrid-container">
<FluentDataGrid Items="@FilteredItems" Pagination="@pagination" Loading="data == null" GridTemplateColumns="0.6fr 1fr 1fr" RowSize="DataGridRowSize.Large" MultiLine="true">
<ChildContent>
<PropertyColumn Property="@(c => c.Id.ToString())" Title="Id" Sortable="true"/>
<PropertyColumn Property="@(c => c.Text1)" Title="Text1" Sortable="true"/>
<PropertyColumn Property="@(c => c.Text2)" Title="Text2" Sortable="true"/>
</ChildContent>
<LoadingContent>
<p>Loading</p>
</LoadingContent>
<EmptyContent>
<p>No data.</p>
</EmptyContent>
</FluentDataGrid>
</div>
<FluentPaginator State="@pagination">
<SummaryTemplate>
@($"Total {pagination.TotalItemCount ?? 0}")
</SummaryTemplate>
<PaginationTextTemplate>
@($"{pagination.CurrentPageIndex + 1} / {pagination.LastPageIndex + 1 ?? 1}")
</PaginationTextTemplate>
</FluentPaginator>
<style>
#datagrid-container {
height: calc(100% - 3.5rem);
min-height: 8rem;
max-height: 80dvh;
overflow-x: auto;
overflow-y: hidden;
}
</style>
@code {
public class ExampleData {
public required int Id { get; set; }
public required string Text1 { get; set; }
public required string Text2 { get; set; }
}
private PaginationState pagination = new PaginationState { ItemsPerPage = 20 };
private IQueryable<ExampleData>? FilteredItems => data?.AsQueryable();
public List<ExampleData>? data = null;
protected override void OnInitialized() {
data = [];
data.Add(new() {
Id = 0,
Text1 = "A",
Text2 = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."
});
for (int i = 1; i < 300; i++) {
if (i >= 10 && i % 3 == 0) {
data.Add(new() {
Id = i,
Text1 = "A",
Text2 = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."
});
} else {
data.Add(new() {
Id = i,
Text1 = "A",
Text2 = "B"
});
}
}
}
}
🤔 Expected Behavior
It was expected that these parameters would not conflict with each other.
😯 Current Behavior
When the MultiLine="true" parameter is specified, the lines “merge” (see the screenshot).
💁 Possible Solution
🔦 Context
🌍 Your Environment
- OS & Device: Windows 11
- Browser Yandex Browser (Chrome Family)
- .NET and Fluent UI Blazor library Version 10.0.404 and 5.1.0
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 497
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 47
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/fluentui-blazor
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
microsoft/fluentui-blazor#5688 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
microsoft/fluentui-blazor#5687 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/fluentui-blazor#5684 ·
Maintainers usually reply within 1 day
-
fix: checked task-list declarations using * or + fail the contribution checkPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/fluentui-blazor#5683 ·
Maintainers usually reply within 1 day
-
[FluentNumberInput ]: Screen reader does not announce the Spin Button role for the NumericType spin edit boxPossibly taken @vnbaaij claimed this 4 days ago. Opena11y A11yMAS A11ySev2 FluentUIBlazor_Web MAS4.1.2
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/fluentui-blazor#5533 ·
Maintainers usually reply within 1 day
All issues in microsoft/fluentui-blazor
Similar issues
-
In-car displays show 0 km/h and P while the AV drivesPossibly taken @bazilinskyy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
bazilinskyy/coupled-sim#366 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BaryoDev/umbraco-pwa#196 ·
Maintainers usually reply within 1 day
-
bug flaky lsp-transport small
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
OpenTelemetryChatClient records gen_ai.response.finish_reasons as a JSON string instead of string[]Openarea-ai bug untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
dotnet/extensions#7995 ·
Maintainers usually reply within 1 day