Hi Syncfusion, I have a MultipleSelect dropdown showing master data, just a simple list of Value: PlantTechnicalFeaturesAndStructuresId (int) and Text: MemberName (string} of objects:
Public class PlantTechnicalFeaturesAndStructureModel
{
public int PlantTechnicalFeaturesAndStructuresId { get; set; }
public string MemberName { get; set; }
}
Here my MultipleSelect dropdown code:
<SfMultiSelect TValue="int[]" TItem="PlantTechnicalFeaturesAndStructureModel" DataSource="@plantTechnicalFeaturesAndStructures" @bind-Value="plantPlantTechnicalFeaturesAndStructures"
Mode="@VisualMode.CheckBox" ShowDropDownIcon="true" ShowSelectAll="true" AllowFiltering="true"
SelectAllText="Select All" UnSelectAllText="Un-select All" Placeholder="Please select feature(s)">
<MultiSelectFieldSettings Text="MemberName" Value="PlantTechnicalFeaturesAndStructuresId"></MultiSelectFieldSettings>
<MultiSelectEvents TValue="int[]" TItem="PlantTechnicalFeaturesAndStructureModel" ValueChange="@((args)=>OnPlantTechnicalFeaturesAndStructuresChanged(args,plant))"></MultiSelectEvents>
</SfMultiSelect>
DataSource related code:
private List<PlantTechnicalFeaturesAndStructureModel> plantTechnicalFeaturesAndStructures;
protected override async Task OnInitializedAsync()
{
plantTechnicalFeaturesAndStructures = await plantFeaturesService.GetPlantTechnicalFeaturesAndStructures();
}
bind-Value related code:
int[] plantPlantTechnicalFeaturesAndStructures = plant.PlantPlantTechnicalFeaturesAndStructures.Select(pf => pf.PlantTechnicalFeaturesAndStructuresId).ToArray();
resulting in an array of integers, representing selected PlantTechnicalFeaturesAndStructureModel objects
This works fine, but selecting other list values in the control seems te be imposible!
Looks like the control is in some kind of read-only state.
See image in attatchment
Attachment:
Multiple_select_unselectable_419088b8.rar