Hi,
I'm using the Multiselect dropdown and Dropdown list, but the Multiselect dropdown doesn't show the selected values if the values aren't in the searched records. Do you know what might be causing this?
The following is the code that I have for the Multiselect and then the Query I'm using for the Multiselect to show the records.
<div class="form-group">
<label>The course is mandatory for the following Duties:</label>
<SfMultiSelect @ref="DutiesMultiSelectRef" @bind-Value="@(MandatoryDutiesId)" Query="DutiesQuery"
AllowFiltering="true" ShowSelectAll="true" SelectAllText="Select All"
UnSelectAllText="Unselect All" ShowDropDownIcon="true" Placeholder="Select a Duty" Mode="VisualMode.CheckBox"
TItem="DutiesView" TValue="int[]">
<MultiSelectFieldSettings Text="Name" Value="Id" />
<SfDataManager Url="api/Duties/Search" Adaptor="Adaptors.UrlAdaptor" />
</SfMultiSelect>
</div>
DutiesQuery = new Query().Select(new List<string>
{
"Id",
"Name"
})
.Take(5)
.RequiresCount();