Greetings,
I've been trying to get the SelectedItems, but it always comes null, can some one spot what I'm doing wrong?
<RadzenCheckBoxList Data="@MechanicalTasks"
TValue="string"
@bind-Values="@SelectedItems"
TextProperty="Descricao"
ValueProperty="Ui"
Orientation="Orientation.Vertical" />
@code{
[Parameter]
public List<TarefaModel> MechanicalTasks { get; set; }
[Parameter]
public List<string> SelectedItems { get; set; } = new List<string>();
void onSave_RadzenButtonClick()
{
var selectedTasks = SelectedItems ?? new List<string>();
DialogService.Close(new { KeyPress = "OK", SelectedItems = selectedTasks });
}
}
Best Regards