Skip to content

MudSelect Extended existing entries are not displayed. #547

@IngoManthey

Description

@IngoManthey

<MudSelectExtended T="CustomerWithEmail" ItemCollection="_customersWithEmail" SearchBox="true" SelectAllPosition="SelectAllPosition.BeforeSearchBox" SelectAllText=@Localizer["SelectAll"] SelectAll="true" MultiSelectionTextFunc="@GetMultiSelectionText" MultiSelection="true" @bind-SelectedValues="_options" Label=@Localizer["Customers"] AdornmentIcon="@Icons.Material.Filled.Search" AnchorOrigin="Origin.BottomCenter" ValuePresenter="ValuePresenter.Text" Clearable="true"> @foreach (var item in _customersWithEmail) { <MudSelectItemExtended T="CustomerWithEmail" Value="@item" Text="@item.CustomerName" /> } </MudSelectExtended>

(_options as HashSet)?.AddRange(data);

I load my existing data and set it to SelectedValues. The correct number is displayed in the text. However, when I open the selection, the existing entries are not displayed as selected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions