Hi Syncfusion-Team.
Is it possible to present the selected item as token when MultiSelectMode is None.
Best,
Christoph
Hi Christoph,
Query: Show selection as token in SfAutoComplete SingleSelectMode
We have checked the requested requirement and we currently, don’t have support to show the token in the single selection mode. Could you please provide the below details?
It will be helpful for investigating further on this and provide a solution at earliest.
Regards,
Ruba Shanmugam
Hi Ruba.
In our usecase we assign tasks to a single user who is responsible for the task. Additionally other users can assign to the task as well, but just to get information whenever the tasks changes.
So we use the sfAutoComplete once with MultiSelectMode is None to select the user who is responsible for the task, and a second time with MultiSelectMode is Token to select the users who should be notified when the task changes.
To have the same look and feel on the Page we want to show tokens for single- and multiseleciton.
Best,
Christoph
Hi Christoph,
As of now, we don’t have support to add a token in single selection mode. Currently we are preparing a workaround sample for your reference and we will share the sample on July 21, 2022.
Since, we have logged a feature request “Show selection as token in SfAutoComplete single selection mode”. You can keep track of the bug from the feedback portal below.
Feedback link: https://www.syncfusion.com/feedback/36469/show-selection-as-token-in-sfautocomplete-single-selection-mode
Please cast your vote to
make it count. We will prioritize the features every release based on the
demands and we do not have an immediate plan to implement this feature since we
committed to already planned work. So, this feature will be available in any of
our upcoming releases.
If you have any more specifications/suggestions for the feature request, you can add them as a comment in the portal.
Regards,
Ruba Shanmugam
Hi Ruba.
Is it possible to get this feature for the SfComboBox control as well. The use case will be the same.
Best,
Christoph
Hi Christoph,
Thanks for sharing the details.
We have logged the same feature in the SfComboBox also. Please refer to the below feedback link,
Feedback link: https://www.syncfusion.com/feedback/36469/show-selection-as-token-in-sfautocomplete-and-sfcombobox-single-selection-mode
We have prepared a workaround sample for your requirement using the SfComboBox with the IsEditable mode. Please get the sample from the attachment. In this sample when we choose an item from the dropdown and set the CustomView for SfComboBox using SfChipGroup control when the section has been changed.
Please check the sample attached and let us know if you have any other details.
Regards,
Ruba Shanmugam
Hi Ruba.
Thanks for the workaround. It works as expected. The only thing is the difference of the close button between SfChip and SfComboBox.Token. Is there a way to modify them?
Best,
Christoph
Hi Christoph,
Query: Is there a way to modify the close button like SfComboBox?
We have checked to change the close button of the SfChip. But unable to customise the close button in SfChip control. We have changed the background color and get the same Android view, but in iOS and UWp we can't achieve the same view. We have modified the sample and please get the sample from the attachments.
Please let us know if you need any other details.
Regards,
Ruba Shanmugam