CodeBeam.MudBlazor.Extensions icon indicating copy to clipboard operation
CodeBeam.MudBlazor.Extensions copied to clipboard

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

Open denisian opened this issue 2 years ago • 3 comments
trafficstars

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>

denisian avatar Oct 09 '23 05:10 denisian

@denisian Did you manage to find a way to do this?

vukasinpetrovic avatar Apr 13 '25 18:04 vukasinpetrovic

@mckaragoz Is there a way to do this right now, to be able to have grouping and search at the same time?

vukasinpetrovic avatar Apr 13 '25 19:04 vukasinpetrovic

Not yet currently. But you can add your own search logic.

mckaragoz avatar Apr 14 '25 13:04 mckaragoz