Multiselect doesn't show selected values

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();


2 Replies

UD UdhayaKumar Duraisamy Syncfusion Team September 13, 2022 12:12 PM UTC

Hi Carlos,


We are validating the requirement. We will update the further details in two business days (15th September 2022).


Regards,

Udhaya Kumar D



UD UdhayaKumar Duraisamy Syncfusion Team September 15, 2022 10:55 AM UTC

Hi Carlos,


Sorry for the inconvenience caused.


We have recreated a sample based on the shared code snippet and validated the reported query on our end. Unfortunately, we couldn’t reproduce the reported issue as per your scenario. We have Shared a sample for reference. Also, We suggest you upgrade your Syncfusion package version to the latest version. If you still facing the same issue, we request you to provide additional details about the issue as mentioned below, This will help us validate the issue further and provide you with a better solution.


1. Simple Issue reproducing runnable sample (or modify the shared sample as per your scenario).

2. Video illustration of the issue.

3. Share your Syncfusion package version.


Sample :  https://www.syncfusion.com/downloads/support/directtrac/general/ze/SyncfusionBlazorApp12115904388


Regards,

Udhaya Kumar D



Loader.
Up arrow icon