CodeBeamOrg / CodeBeam.MudBlazor.Extensions

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

MudSelectExtended - searchbox not appearing #401

Open hjrb opened 1 month ago

hjrb commented 1 month ago

Hi,

first of all: thanks for this great library! I'm using Blazor .NET 8 with the new @rendermode capabilities. I'm using release 6.9.2. I have a Razor page that uses @rendermode RenderMode.InteractiveWebAssembly

I'm using MudSelectExtended in an EditTemplate of a MudDataGrid `

@foreach (var mg in manufacturers.GroupBy(x=>x.Group)) { @foreach (var m in mg.OrderBy(a=>a.ManufacturerName)) { } } //... ` The select appears. Grouping works. But the SearchBox does not appear. I assume it has to with how services are registered regarding @rendermode For Mudblazor I used this to register the regular MudBlazor services in Mainlayout.razor in the client project. ` ` What can I do? ![MudSelectExtended issue](https://github.com/CodeBeamOrg/CodeBeam.MudBlazor.Extensions/assets/28059248/13f1c2dd-ad8e-4a8b-a626-f13ab2c4ec48)
mckaragoz commented 1 month ago

Hi, SearchBox only show when you use ItemCollection. If you use RenderFragments, need to implement you own search field.

hjrb commented 1 month ago

Thank you so much. Works! Maybe add this to the documentation. Or better: create a compiler waning that if SearchBox is true but ItemCollection is null . One more question: is it possible to use ItemCollection and grouping at once?

mckaragoz commented 1 month ago

Currently not, there is also an issue #349. It would be good implementation but need to work on other features. We are open to PR if someone volunteered.