Show selection as token in SfAutoComplete SingleSelectMode

Hi Syncfusion-Team.

Is it possible to present the selected item as token when MultiSelectMode is None.

Best,
Christoph


7 Replies 1 reply marked as answer

RS Ruba Shanmugam Syncfusion Team July 19, 2022 11:34 AM UTC

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?


  1. Can you provide a use case for showing the token in single selection mode,
  2. Please describe your expected behaviour for showing the single token



It will be helpful for investigating further on this and provide a solution at earliest.

Regards,

Ruba Shanmugam



CH Christoph July 20, 2022 06:51 AM UTC

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



RS Ruba Shanmugam Syncfusion Team July 20, 2022 02:09 PM UTC

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



CH Christoph July 21, 2022 09:20 AM UTC

Hi Ruba.


Is it possible to get this feature for the SfComboBox control as well. The use case will be the same.


Best,

Christoph



RS Ruba Shanmugam Syncfusion Team July 21, 2022 12:58 PM UTC

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


Attachment: AutoComplete_SingleSelectionMode_1480d798.zip

Marked as answer

CH Christoph July 22, 2022 08:38 AM UTC

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



RS Ruba Shanmugam Syncfusion Team July 25, 2022 12:49 PM UTC

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


Attachment: ComboBox_SingleSelectionMode_8e659f0e.zip

Loader.
Up arrow icon