matblazor

Blazor MatAutocompletelist throwing System.ArgumentNullException

寵の児 提交于 2021-01-29 17:32:55
问题 I'm building hotel service web application and I'm want to use MatBlazor component called MatAutocompleteList for choosing clients for reservations I've encountered an issue when Client is selected like on the screen And I remove this value leaving it blank and press enter application throws an exception: System.ArgumentNullException: Value cannot be null. (Parameter 'model') at Microsoft.AspNetCore.Components.Forms.FieldIdentifier..ctor(Object model, String fieldName) at Microsoft.AspNetCore

Mat Blazor mat-expansion-panel remove elevation/border

为君一笑 提交于 2020-02-16 06:29:20
问题 I want to remove the elevation/border from Mat expansion panel. I've already read other related articles like mat-expansion-panel remove border but they are not working within Blazor. I've tried to access the background-color property but MatBlazor is saying this property doesnt exist. I've also tried using the class=".mat-elevation-z0" inside the Mat Expansion panel like this: <MatExpansionPanel class=".mat-elevation-z0" @bind-Expanded="@panelOpenState"> Which Doesn't work. At the minute the

Blazor MatMenu taken last value in all menu in foreach loop

落爺英雄遲暮 提交于 2019-12-24 06:48:52
问题 MatMenu carrying last instance for all the listitems in foreach loop @foreach (var sub in subs) { <MatButton Label="Menu" OnClick="@OnClick" RefBack="@buttonForwardRef"></MatButton> <MatMenu @ref="Menu" TargetForwardRef="@buttonForwardRef"> <MatList SingleSelection="true"> <MatListItem>@sub.SubName</MatListItem> </MatList> </MatMenu> } Everey row want differene menu 回答1: Your issue is that you are sharing buttonForwardRef between all menus. Do you need new references for each menu: @using