Relative Content

Tag Archive for c#blazormudblazor

Dynamic Controls in MudBlazor/Blazor

I am trying to create dynamic controls in MudBlazor. I am able to do that using Dictionary, as you can see in the code below. The problem I am facing is while removing a control. When Test3 is removed, one control goes away from the display but it looks like the ref for Test4 still points to the Text3 object. Wondering what I am doing wrong over here.

How to add childcomponent to mudstack in my code

private RenderFragment RenderSimpleElement() => builder => { int seq = 0; builder.OpenComponent<MudStack>(seq++); builder.AddAttribute(seq++,”Child”,””); builder.OpenComponent<StoragePlace>(seq++); builder.AddAttribute(seq++, “Name”, “kukuku”); builder.AddAttribute(seq++, “Width”, “180px”); builder.AddAttribute(seq++, “Height”, “260px”); builder.CloseComponent(); builder.OpenComponent<StoragePlace>(seq++); builder.AddAttribute(seq++, “Name”, “hahaha”); builder.AddAttribute(seq++, “Width”, “180px”); builder.AddAttribute(seq++, “Height”, “260px”); builder.CloseComponent(); builder.CloseComponent(); }; this cant work! I can compile it, but when rendering this interface, the following error occurs. I think […]

Autocomplete does not return id

My scenario is that I am trying to save a new Lead which has property UserId, but because I have too many leads, I added categories to users, so a user can only have one category.
For this, I created two autocompletes, one for the category and one for users.
The autocomplete for category should set CategoryId value when selected, CategoryId should be passed to UserAutcomplete so that I can filter all users that belong to the given category.

Mudblazor library is not able to handle my login request

I’m using mudblazor library to make a client side blazor webapp. But, whenever I’m clicking the button of the form that I created using mudblazor library, form dosen’t respond with either the request completion or any kind of error.