Tokens never visible
Hello,
I want to use the SfComboBox in Multi-Selection mode. Unfortunately, tokens are never shown when I select items from the box. What am I doing wrong? I hope you can point me in the right direction.
Thanks, Michael
public partial class FilteringViewModel : ObservableObject { public ObservableCollection<Disciplines> Disciplines { get; set; } = [ new Disciplines("Football", 1), new Disciplines("Baseball", 2), new Disciplines("Basketball", 3) ]; } public class Disciplines(string name, int value) { public string Name { get; set; } = name; public int Value { get; set; } = value; }
<inputs:SfComboBox x:Name="comboBox" TextMemberPath="Name" DisplayMemberPath="Name" ItemsSource="{Binding Disciplines}" SelectionMode="Multiple" Placeholder="Disciplines filter"> </inputs:SfComboBox>
After selecting items, the combobox doesn't show any token.
I forgot to mention that the selected elements are correctly chosen and accessible.
public partial class FilteringViewModel : ObservableObject { public ObservableCollection<Disciplines> Disciplines { get; set; } = [ new Disciplines("Football", 1), new Disciplines("Baseball", 2), new Disciplines("Basketball", 3) ]; public ObservableCollection<Disciplines> SelectedDisciplines { get; set; } = []; [RelayCommand] private void DisciplinesSelected(string para) { foreach (var selectedDiscipline in SelectedDisciplines) { // Handle the logic when disciplines are selected Debug.WriteLine($"Selected Discipline: {selectedDiscipline.Name}, Value: {selectedDiscipline.Value}"); } } }
<inputs:SfComboBox x:Name="comboBox" TextMemberPath="Name" DisplayMemberPath="Name" ItemsSource="{Binding Disciplines}" SelectionMode="Multiple" SelectedItems="{Binding SelectedDisciplines}" Placeholder="Disciplines filter" > <inputs:SfComboBox.Behaviors> <toolkit:EventToCommandBehavior EventName="DropDownClosed" Command="{Binding DisciplinesSelectedCommand}" BindingContext="{Binding Source={x:Reference this}, Path=BindingContext}" /> </inputs:SfComboBox.Behaviors> </inputs:SfComboBox>
And, the Placeholder text is also never shown!
Regards
Michael
Ok, I found the reason why it is not working.
I downgraded to Version 34.1.31 and then my code is working. There seems to be a serious Bug in Version 34.1.32.
Bug is also present in just released Version 34.1.33
Hi Michael,
Thank you for reporting this issue.
We were able to replicate the reported behavior using the code sample you provided. During our validation, we observed that when the SfComboBox is configured in Multi-Selection mode, the selected item tokens are not displayed as expected.
Our team has validated the issue and is currently investigating the root cause. We will share our findings and provide a further update on 30th July.
We appreciate your patience and understanding while we work on this.
Best regards,
Tameem.
Hi Michael,
Thank you for reporting this issue.
We are glad to inform you that the reported issue, where the selected token was not displayed in SfComboBox, has been fixed on our end.
The fix will be included in our upcoming Volume 2 Service Pack (SP) release. Once the release is available, we recommend updating to the latest NuGet package and verifying the behavior in your application.
Thank you for your patience and for bringing this issue to our attention. Please let us know if you have any further questions.
Regards,
Tameem.
Hi Michael,
We would like to provide an update regarding this issue.
We are glad to inform you that the reported issue, where the selected token was not displayed in SfComboBox, has now been resolved. The fix is available in the Volume 2 Service Pack release (v34.2.2).
We kindly recommend updating to Syncfusion NuGet version 34.2.2 and verifying the behavior in your application.
Thank you for your patience and for bringing this issue to our attention. Please let us know if you have any further questions or need additional assistance.
Regards,
Tameem.
- 6 Replies
- 2 Participants
-
MI Michael
- Jul 27, 2026 10:16 AM UTC
- Aug 10, 2026 10:21 AM UTC