Multi Selection : Token Representation - Free Text as Token

Hi, 

I have 3 questions

  1. How to allow free text also be entered by the user, currently the only text converts into a token is the text selected from Suggestions
  2. How to auto-populate tokens when control is loaded 
  3. How to get all the tokens in the field  
Cheers



3 Replies

PA Paul Anderson S Syncfusion Team August 1, 2018 01:01 PM UTC

Hi Ali Usman, 
 
Thank you for using Syncfusion products. 
 
Query 1: How to allow free text also be entered by the user, currently the only text converts into a token is the text selected from Suggestions? 
 
Based on your requirement we have prepared a custom sample in which after typing the free text, if the control is unfocused or pressing the done button the typed text will be added as token. We have achieved this using focus changed event in autocomplete. Please find the sample from the below link. 
 
Query 2 and 3: How to auto-populate tokens when control is loaded and How to get all the tokens in the field? 
 
Using Selected item property, we can set the token when the control is loaded, and we can also get all the tokens in the field. To achieve your requirement, we have used the selected item property in the custom sample. Please find the sample from the below link. 
 
Sample Link:  
 
Regards, 
Paul Anderson 



AU Ali Usman August 1, 2018 04:08 PM UTC

Paul, thank you so much for your help. Highly appreciated. Cheers


PA Paul Anderson S Syncfusion Team August 2, 2018 03:59 AM UTC

Hi Ali Usman, 
  
Thanks for the update. We are glad to assist you. Please contact us if you need further assistance in future. 
  
Regards, 
Paul Anderson 


Loader.
Up arrow icon