-
Notifications
You must be signed in to change notification settings - Fork 461
Closed
Labels
closed:doneWork is finishedWork is finished
Description
🐛 Bug Report
fluentui-blazor/src/Core/Components/DataGrid/Columns/ColumnBase.razor.cs
Lines 250 to 253 in e6e151c
| if ((Sortable is true || IsDefaultSortColumn) && (Grid.ResizableColumns || ColumnOptions is not null)) | |
| { | |
| _isMenuOpen = !_isMenuOpen; | |
| } |
StateHasChanged and thus the menu is never shown.
💻 Repro or Code Sample
<FluentDataGrid RowStyle="@(x => $"height:{(int)DataGridRowSize.Medium}px;")"
HeaderCellAsButtonWithMenu="true"
ResizableColumns="true"
ResizeType="DataGridResizeType.Discrete"
>
<TemplateColumn TGridItem="TGridItem" Sortable="false" Title="Actions" Align="@Align.End" Width="120px" Filtered="true">
<ChildContent>
Hello world
</ChildContent>
<ColumnOptions>Column Options</ColumnOptions>
</TemplateColumn>
</FluentDataGrid>🤔 Expected Behavior
clicking on TemplateColumn header shows Column Options and resize.
😯 Current Behavior
Nothing happens on click
💁 Possible Solution
Call StateHasChanged after changing property.
Metadata
Metadata
Assignees
Labels
closed:doneWork is finishedWork is finished