Skip to content

fix: MultiLine=True causing PropertyColumn Header's ColumnOptions to display inline vs appear as hover in FluentDataGrid #3124

Closed

Description

@JD2005L

🐛 Bug Report

When MultiLine="true", column filter displays as inline instead of as a hover effect. With this option false, it displays as normal (however is being visually clipped by next header cell, needs z-index adjustment).

💻 Repro or Code Sample

<FluentDataGrid MultiLine="true" RowSize="DataGridRowSize.Small" Virtualize="true" TGridItem="AuditLog" Style="height:100%; width:100%" Items="@filteredAuditLogs.AsQueryable()" GridTemplateColumns="1fr 1fr 1fr 1.5fr 1.5fr 3fr 1.5fr" HeaderCellAsButtonWithMenu="true"> <PropertyColumn Title="User" Sortable="true" Property="x => x.Username"> <ColumnOptions> <select @bind="@(filters["UserFilter"])" @bind:event="onchange" @bind:after="ApplyFilters" style="width: 100%;"> <option value="">All</option> @foreach (var user in distinctUsers) { <option value="@user">@user</option> } </select> </ColumnOptions> </PropertyColumn>

🤔 Expected Behavior

Removed multiline-text style from th in devtools:
Image

😯 Current Behavior

Image

💁 Possible Solution

Exclude multiline-text class from header row. Z-index should also be set to appear above header cells, as currently being visually clipped. I implemented the following CSS to take care of the problem in the interim:

th.multiline-text:has(> div.col-options) {
overflow: initial !important;
z-index: 9999 !important;
}

🌍 Your Environment

  • Fluent UI Blazor library Version 4.11.0

Activity

  1. added
    triage
    on Jan 4, 2025
  2. vnbaaij commented on Jan 4, 2025

    @vnbaaij
    Collaborator

    Duplicate. Already fixed with PR #3118.

  3. added
    closed:duplicate
    and removed
    triage
    on Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed:duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions