Hi team,
I want to bind the MultiSelect to a variable, by doing this:
SiteMultiVal" <="" font=""> Mode="@VisualMode.CheckBox" Placeholder="Select or search by site" DataSource="@_allSites" ShowSelectAll="@ShowSelectAllCheckBox" EnableSelectionOrder="@EnableSelectionOrders" FilterBarPlaceholder="Search sites" EnableGroupCheckBox="@EnableCheckBox" PopupHeight="350px">
@{
foreach (var site in SiteMultiVal)
{
MultiSelect value is:@site
}
}
@code{
public List _allSites;
public string[] SiteMultiVal { get; set; } = new string[] { };
protected override async Task OnInitializedAsync()
{
_allSites = await Http.GetJsonAsync>("http://localhost:3000/sitesCustomer='AAA'");
}
}
The thing is, when I tick the checkbox ( either select all or select multiple checkbox) it will only render the first selected item.
My SyncFusion version is 17.4.46.
If updated to 17.4.49, It works better as the selected item will render if ticking those check-boxes separately, but for select-all checkbox, it still only render the first selected item on the dropdownlist.