CodeBeamOrg / CodeBeam.MudBlazor.Extensions

Useful third party extension components for MudBlazor, from the contributors.
https://mudextensions.codebeam.org/
MIT License
410 stars 67 forks source link

[Feature?] MudSelectExtended can't group and search at the same time #291

Open denisian opened 11 months ago

denisian commented 11 months ago

Hello, wondering if it's possible to use both MudSelectItemGroupExtended and SearchBox inside MudSelectExtended component?

I believe at the moment we can only search inside MudSelectExtended if we pass a collection into ItemCollection. However to be able to group data, we should create nested components MudSelectItemGroupExtended and MudSelectItemExtended but this is disables search. Thanks.

<MudSelectExtended
      T="strng"
      SelectedValues="_selectedLocations"
      MultiSelection="true"
      SelectAll="true"
      SearchBox="true"
      SearchBoxAutoFocus="true"
      SearchBoxClearable="true"
      Label="Role">

     <MudSelectItemGroupExtended T="string" Text="Group 1">
        <MudSelectItemExtended Value="@("Item 1")" />
        <MudSelectItemExtended Value="@("Item 2")" />
        <MudSelectItemExtended Value="@("Item 3")" />
     </MudSelectItemGroupExtended>
</MudSelectExtended>