I use the control with Visual Studio. I have defined the RadzenCheckBoxList:
<RadzenCheckBoxList TValue="string" @bind-Value="SelectedStringValues"> <Items> @foreach (MyObject item in MyObjectList) { <RadzenCheckBoxListItem Text=@item.Text Value=@item.Value /> } </Items> </RadzenCheckBoxList>
In my code:
IEnumerable MyObjectList
IEnumerable SelectedStringValues
all properties in MyObject are string.
If I update the interface the SelectedStringValues contain the value of selected item. Work OK as expected.
If I add a value in SelectedStringValues the interface are not update. I add the value in the OnInitializedAsync() event where first load MyObjectList and after add string value to SelectedStringValues. All checkbox are displayed but all are unchecked.
Thanks
Lorenzo Soncini
Italy