Skip to content

When using MudSelectExtended #624

Description

@Sicos1977

I switched to mudselectextended because MudSelect does not support virtualization and searching. I only have one problem now. When the control gets rendered and nothing is select the standard control is always very small

Image

I only see D.... and not Date (that is the label of the field)

                    <MudSelectExtended T="string"
                                       @key="@($"select-{index}")"
                                       Label="@field.DisplayName"
                                       Dense="@User.Dense"
                                       Margin="@(User.Dense ? Margin.Dense : Margin.Normal)"
                                       Typo="Typo.body2"
                                       Variant="Variant.Outlined"
                                       Disabled="@(!Enabled || IsLocked(index))"
                                       Value="@selectedValue"
                                       ValueChanged="@(val => OnFieldChanged(index, val))"
                                       Virtualize="true"
                                       SearchBox="true"
                                       RelativeWidth="DropdownWidth.Adaptive"
                                       NoWrap="true"
                                       ItemCollection="@valueItems"
                                       ToStringFunc="@(val => items.FirstOrDefault(x => x.Value == val).Text)"
                                       PopoverClass="no-wrap-popover">

                    </MudSelectExtended>

I now temporary fixed it by calculating the width of the Date string myself and than use Style="@($"width: {minWidth}" but it should be nice if this just would work automaticly

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions