Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

MudBlazor MudChipSet - How to set selected MudChip programatically?

$
0
0

I'm using a couple of MudBlazors MudChip in a MudChipSet. The exact amount varies based on a the lenght of a list (creating on MudChip per object in that list).

Now I want to select one of these chips based on saved data. My approach was to create a List of MudChips with one per list item (only setting the "Text" property). I'm then filtering to get the one where "Text" is matching the string I have and set that result to the bind "selectedChip" variable.

However, that doesn't work. Any idea why?

See a demo here: try.mudblazor.com/snippet/wOweEzaxfXjVrtFe


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>