CodeBeam.MudBlazor.Extensions
CodeBeam.MudBlazor.Extensions copied to clipboard
[Feature?] MudSelectExtended can't group and search at the same time
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 Did you manage to find a way to do this?
@mckaragoz Is there a way to do this right now, to be able to have grouping and search at the same time?
Not yet currently. But you can add your own search logic.