Skip to content

fix: FluentDataGrid inside Modal dialog ignored flags and functionalities #4288

@LucaCris

Description

@LucaCris

Open an IDialogContentComponent derived component with a DataGrid inside in a modal dialog, via DialogService.ShowDialogAsync(), like this:

        <FluentDataGrid Items="@Content.ElementDescs.AsQueryable()" 
                        ResizableColumns="true" ResizeColumnOnAllRows="false" AutoFit="true"
                        SelectionMode="DataGridSelectMode.Single"
                        @bind-SelectedItems="@SelectedItems"
                        Style="width: 100%; height: 600px; overflow: auto;">
            <PropertyColumn Property="@(e => e.SectionName)" Title="@ERes.STR("EDG_SECT")" Sortable="true" />

As you can see from the image:

  • ResizeColumnOnAllRows is ignored
  • AutoFit is ignored
  • Selection is not working
Image

In other projects these flags are ok when the DataGrid is in the main layout (no popup).

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: repro code or repositoryThe provided description or code is insufficient to repro the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions