Open yangf85 opened 1 month ago
If you use MultiSelection then you need to use @bind-SelectedValues
instead of @bind-Value
If you use MultiSelection then you need to use
@bind-SelectedValues
instead of@bind-Value
thanks. but this property is an IEnumerable type property. Do you mean it requires manual intervention to perform a conversion?
If you use MultiSelection then you need to use
@bind-SelectedValues
instead of@bind-Value
thanks. but this property is an IEnumerable type property. Do you mean it requires manual intervention to perform a conversion?
You can bind whatever you want that inherits IEnumerable. Example:
<MudSelectExtended @bind-SelectedValues="_values" />
@code {
List<SheetMatelStep> _values;
}
Oh, I understand what you mean, but the property defined in the entity model is just a single Flags enum, not a collection property, so I still need to perform a manual conversion operation.
If you use MultiSelection then you need to use
@bind-SelectedValues
instead of@bind-Value
thanks. but this property is an IEnumerable type property. Do you mean it requires manual intervention to perform a conversion?You can bind whatever you want that inherits IEnumerable. Example:
<MudSelectExtended @bind-SelectedValues="_values" /> @code { List<SheetMatelStep> _values; }
Hi ,Cannot bind 'selectedvales' to a List collection property, as in the following way, must be a IEnumerable Property
hi ,everyone.
Cannot bind multiple selections to a model property.
When toggling the selection, the bound value is always 0.